]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Changes from Dave Mills
authorHarlan Stenn <stenn@ntp.org>
Mon, 4 Apr 2005 04:22:10 +0000 (00:22 -0400)
committerHarlan Stenn <stenn@ntp.org>
Mon, 4 Apr 2005 04:22:10 +0000 (00:22 -0400)
bk: 4250c0f2sqaOLzvuukNBbWyxTnwMPQ

ntpd/ntp_proto.c

index d83993d216cf0694e59c0ab540bd69aeb18d0a40..7f31d63321e3f48a91462f0203255f2882a3b702 100644 (file)
@@ -790,12 +790,12 @@ receive(
                 * If the inbound packet is correctly authenticated and
                 * enabled, a symmetric passive association is
                 * mobilized. If not but correctly authenticated, a
-                * symmetric active response is sent. A crypto-NAK is
-                * returned if authentication fails
+                * symmetric active response is sent. If authentication
+                * fails, send a crypto-NAK packet
                 */
                if (!AUTH(restrict_mask & RES_DONTTRUST, is_authentic))
                    {
-                       if (skeyid)
+                       if (is_authentic == AUTH_ERROR)
                                fast_xmit(rbufp, MODE_ACTIVE, 0,
                                    restrict_mask);
                        return;                 /* bad auth */