From: Dave Hart Date: Mon, 5 Oct 2009 07:29:55 +0000 (+0000) Subject: [Bug 1135] :config fails with "Server disallowed request" X-Git-Tag: NTP_4_2_5P227~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=faf1ebe40fd348006913a6a832307e17404bf9fa;p=thirdparty%2Fntp.git [Bug 1135] :config fails with "Server disallowed request" bk: 4ac9a073Pfuc8U4yjtSJciRRrZU9kA --- diff --git a/ChangeLog b/ChangeLog index 4a516f405..59c461e86 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 1135] :config fails with "Server disallowed request" * [Bug 1330] disallow interface/nic rules when --novirtualips or --interface are used. * [Bug 1332] ntpq -c 'rv 0 variablename' returns extra stuff. diff --git a/ntpd/ntp_control.c b/ntpd/ntp_control.c index 4172c42c5..2a74c2939 100644 --- a/ntpd/ntp_control.c +++ b/ntpd/ntp_control.c @@ -760,7 +760,7 @@ process_control( properlen = (properlen + 7) & ~7; maclen = rbufp->recv_length - properlen; - if ((rbufp->recv_length & (sizeof(u_long) - 1)) == 0 && + if ((rbufp->recv_length & 3) == 0 && maclen >= MIN_MAC_LEN && maclen <= MAX_MAC_LEN && sys_authenticate) { res_authenticate = 1;