From: Danny Mayer Date: Sun, 16 Dec 2007 17:16:08 +0000 (-0500) Subject: Bug #830 Fix interface count X-Git-Tag: NTP_4_2_5P108~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=690dcd992c7fe916090950bae4e97bdf1e04a521;p=thirdparty%2Fntp.git Bug #830 Fix interface count bk: 47655d58elIUyNUq6g5ebMXQsqk8hw --- diff --git a/ntpd/ntp_io.c b/ntpd/ntp_io.c index 6471afe21..a30e943e8 100644 --- a/ntpd/ntp_io.c +++ b/ntpd/ntp_io.c @@ -69,6 +69,7 @@ #endif /* IPv6 Support */ extern int listen_to_virtual_ips; +int interface_optioncount = 0; /* * interface names to listen on */ @@ -767,6 +768,7 @@ add_specific_interface (const char *if_name) ISC_LINK_INIT(iface, link); ISC_LIST_APPEND(specific_interface_list, iface, link); } + interface_optioncount++; } void init_specific_interface (void) @@ -1074,7 +1076,7 @@ address_okay(isc_interface_t *isc_if) { return (ISC_TRUE); } } - if (/* interface_optioncount > */ 0) { + if (interface_optioncount > 0) { DPRINTF(4, ("address_okay: FAIL\n")); return (ISC_FALSE); }