keys: initialize data used for measuring authentication delay
This issue was found in a Frama-C analysis.
This commit is contained in:
parent
9a6369d8f1
commit
9b34556952
1 changed files with 2 additions and 0 deletions
2
keys.c
2
keys.c
|
@ -107,6 +107,8 @@ determine_hash_delay(uint32_t key_id)
|
|||
double diff, min_diff;
|
||||
int i, nsecs;
|
||||
|
||||
memset(&pkt, 0, sizeof (pkt));
|
||||
|
||||
for (i = 0; i < 10; i++) {
|
||||
LCL_ReadRawTime(&before);
|
||||
KEY_GenerateAuth(key_id, (unsigned char *)&pkt, NTP_NORMAL_PACKET_LENGTH,
|
||||
|
|
Loading…
Reference in a new issue