1
0
mirror of https://github.com/kakwa/uts-server synced 2024-06-03 09:38:07 +02:00

just to be safe, strlen + 1 allocated

This commit is contained in:
kakwa 2016-09-02 07:43:39 +02:00
parent 92b289e100
commit 627f9c5973

View File

@ -167,7 +167,7 @@ int rfc3161_handler(struct mg_connection *conn, void *context) {
"uts-server, a simple RFC 3161 timestamp server");
}
if (serial_id == NULL) {
serial_id = calloc(8, sizeof(char));
serial_id = calloc(9, sizeof(char));
serial_id = rand_string(serial_id, 8);
}