]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 1135] :config fails with "Server disallowed request"
authorDave Hart <hart@ntp.org>
Mon, 5 Oct 2009 07:29:55 +0000 (07:29 +0000)
committerDave Hart <hart@ntp.org>
Mon, 5 Oct 2009 07:29:55 +0000 (07:29 +0000)
bk: 4ac9a073Pfuc8U4yjtSJciRRrZU9kA

ChangeLog
ntpd/ntp_control.c

index 4a516f40515c95e6345ff7e8edda8159abce0f4c..59c461e8670947a1ee196491e4d86f41264e40c4 100644 (file)
--- 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.
index 4172c42c5daf66ad106549c15500afdd56933e3a..2a74c2939aadcff63b95a3d85831db424289c8e9 100644 (file)
@@ -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;