nts: check for NTS NAK specifically when responding
Ignore other KoD codes than NTS NAK when deciding if the server response should not be authenticated.
This commit is contained in:
parent
863866354d
commit
ce956c99a8
1 changed files with 1 additions and 1 deletions
|
@ -279,7 +279,7 @@ NNS_GenerateResponseAuth(NTP_Packet *request, NTP_PacketInfo *req_info,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NTS NAK response does not have any other fields */
|
/* NTS NAK response does not have any other fields */
|
||||||
if (kod)
|
if (kod == NTP_KOD_NTS_NAK)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
for (i = 0, plaintext_length = 0; i < server->num_cookies; i++) {
|
for (i = 0, plaintext_length = 0; i < server->num_cookies; i++) {
|
||||||
|
|
Loading…
Reference in a new issue