mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 19:45:07 -05:00
keys: initialize data used for measuring authentication delay
This issue was found in a Frama-C analysis.
This commit is contained in:
2
keys.c
2
keys.c
@@ -107,6 +107,8 @@ determine_hash_delay(uint32_t key_id)
|
|||||||
double diff, min_diff;
|
double diff, min_diff;
|
||||||
int i, nsecs;
|
int i, nsecs;
|
||||||
|
|
||||||
|
memset(&pkt, 0, sizeof (pkt));
|
||||||
|
|
||||||
for (i = 0; i < 10; i++) {
|
for (i = 0; i < 10; i++) {
|
||||||
LCL_ReadRawTime(&before);
|
LCL_ReadRawTime(&before);
|
||||||
KEY_GenerateAuth(key_id, (unsigned char *)&pkt, NTP_NORMAL_PACKET_LENGTH,
|
KEY_GenerateAuth(key_id, (unsigned char *)&pkt, NTP_NORMAL_PACKET_LENGTH,
|
||||||
|
|||||||
Reference in New Issue
Block a user