mirror of
https://github.com/kakwa/uts-server
synced 2025-01-10 05:34:29 +01:00
just to be safe, strlen + 1 allocated
This commit is contained in:
parent
1454ea4880
commit
b3b3014873
@ -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