]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Scan all interfaces.
authorDanny Mayer <mayer@ntp.org>
Sun, 16 Feb 2003 03:40:34 +0000 (22:40 -0500)
committerDanny Mayer <mayer@ntp.org>
Sun, 16 Feb 2003 03:40:34 +0000 (22:40 -0500)
bk: 3e4f0832iuB0bq47hiezLv9xLnFw8Q

ntpd/ntp_io.c
ntpdc/ntpdc.c

index 777bbc8221ad2f0465c997e2c4477e9e4b7ebca9..f8471556c0bbfe1634e38ad87d931e06b6776c42 100644 (file)
@@ -1803,7 +1803,7 @@ findinterface(
 #endif
                return ANY_INTERFACE_CHOOSE(addr);
 
-       for (i = nwilds; i < ninterfaces; i++) {
+       for (i = 0; i < ninterfaces; i++) {
                /*
                * First look if is the the correct family
                */
@@ -1830,7 +1830,7 @@ findbcastinter(
 #if !defined(MPE) && (defined(SIOCGIFCONF) || defined(SYS_WINNT))
        register int i;
 
-       for (i = nwilds; i < ninterfaces; i++) {
+       for (i = 0; i < ninterfaces; i++) {
                /*
                * First look if is the correct family
                */
index dd9bd66aa24eca937f42170b7f86df439eb59d70..329451cb265702b1f1fc185b178946dcdf2cc373 100644 (file)
@@ -755,7 +755,7 @@ getresponse(
                goto again;
        }
        /*
-        * If we've received this before, toss it
+        * If we've received this before, +toss it
         */
        seq = INFO_SEQ(rpkt.auth_seq);
        if (haveseq[seq]) {