From: Harlan Stenn Date: Mon, 20 Jul 2009 04:18:45 +0000 (-0400) Subject: [Bug 1248] RES_MSSNTP typo in ntp_proto.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41c57c63ca201e4e5416abf48b104517c6840eda;p=thirdparty%2Fntp.git [Bug 1248] RES_MSSNTP typo in ntp_proto.c bk: 4a63f025K6Nlg1ubgLnG3lqlzhkoDw --- diff --git a/ChangeLog b/ChangeLog index 323bbed331..8f61e795fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 1248] RES_MSSNTP typo in ntp_proto.c. * [Bug 1246] use a common template for singly-linked lists, convert most doubly-linked lists to singly-linked. * Log warning about signd blocking when restrict mssntp used. diff --git a/ntpd/ntp_proto.c b/ntpd/ntp_proto.c index 53c6e361f9..1dd0c26223 100644 --- a/ntpd/ntp_proto.c +++ b/ntpd/ntp_proto.c @@ -573,7 +573,7 @@ receive( * This is described in Microsoft's WSPP docs, in MS-SNTP: * http://msdn.microsoft.com/en-us/library/cc212930.aspx */ - } else if (has_mac == MAX_MAC_LEN && (restrict_mask & RES_MSNTP) && + } else if (has_mac == MAX_MAC_LEN && (restrict_mask & RES_MSSNTP) && (retcode == AM_FXMIT || retcode == AM_NEWPASS) && (memcmp(zero_key, (char *)pkt + authlen + 4, MAX_MAC_LEN - 4) == 0)) {