mirror of
https://github.com/kakwa/uts-server
synced 2025-01-24 04:17:25 +01:00
just to be safe, strlen + 1 allocated
This commit is contained in:
parent
92b289e100
commit
627f9c5973
@ -167,7 +167,7 @@ int rfc3161_handler(struct mg_connection *conn, void *context) {
|
|||||||
"uts-server, a simple RFC 3161 timestamp server");
|
"uts-server, a simple RFC 3161 timestamp server");
|
||||||
}
|
}
|
||||||
if (serial_id == NULL) {
|
if (serial_id == NULL) {
|
||||||
serial_id = calloc(8, sizeof(char));
|
serial_id = calloc(9, sizeof(char));
|
||||||
serial_id = rand_string(serial_id, 8);
|
serial_id = rand_string(serial_id, 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user