From: Miroslav Lichvar Date: Tue, 2 Apr 2024 09:33:04 +0000 (+0200) Subject: nts: check for NTS NAK specifically when responding X-Git-Tag: 4.6-pre1~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce956c99a8f611fabe38a3486b832d363f650131;p=thirdparty%2Fchrony.git 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. --- diff --git a/nts_ntp_server.c b/nts_ntp_server.c index be69a2ba..5d46c296 100644 --- a/nts_ntp_server.c +++ b/nts_ntp_server.c @@ -279,7 +279,7 @@ NNS_GenerateResponseAuth(NTP_Packet *request, NTP_PacketInfo *req_info, } /* NTS NAK response does not have any other fields */ - if (kod) + if (kod == NTP_KOD_NTS_NAK) return 1; for (i = 0, plaintext_length = 0; i < server->num_cookies; i++) {