mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 03:55:07 -05:00
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:
@@ -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++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user