]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
PEER_EVENT bugfix.
authorHarlan Stenn <stenn@ntp.org>
Sat, 16 Nov 2002 22:28:53 +0000 (17:28 -0500)
committerHarlan Stenn <stenn@ntp.org>
Sat, 16 Nov 2002 22:28:53 +0000 (17:28 -0500)
From: Luis Batanero <luisba@roa.es>

bk: 3dd6c6a5wqUxTd9RVApZW1tmonQJog

ntpd/ntp_control.c

index d7109cabef653d9c1aa2d9ddb1bd492a7047e521..9f061926a7bada11a62eb672d6409cd7a68c132d 100644 (file)
@@ -2727,12 +2727,13 @@ report_event(
                /*
                 * Dump it all. Later, maybe less.
                 */
-               for (i = 1; i <= CP_MAXCODE; i++)
+               for (i = 1; i <= CP_MAXCODE; i++) {
 #ifdef PUBKEY
                        if (i > CP_VARLIST)
                                continue;
 #endif /* PUBKEY */
                        ctl_putpeer(i, peer);
+               }
 #ifdef REFCLOCK
                /*
                 * for clock exception events: add clock variables to