From: Danny Mayer Date: Sun, 16 Feb 2003 03:40:34 +0000 (-0500) Subject: Scan all interfaces. X-Git-Tag: NTP_4_1_80_RC1~71^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c33db886ceab73a505fef6e9705c6abf6d01aef;p=thirdparty%2Fntp.git Scan all interfaces. bk: 3e4f0832iuB0bq47hiezLv9xLnFw8Q --- diff --git a/ntpd/ntp_io.c b/ntpd/ntp_io.c index 777bbc8221..f8471556c0 100644 --- a/ntpd/ntp_io.c +++ b/ntpd/ntp_io.c @@ -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 */ diff --git a/ntpdc/ntpdc.c b/ntpdc/ntpdc.c index dd9bd66aa2..329451cb26 100644 --- a/ntpdc/ntpdc.c +++ b/ntpdc/ntpdc.c @@ -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]) {