]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Bug #830 Fix interface count
authorDanny Mayer <mayer@ntp.org>
Sun, 16 Dec 2007 17:16:08 +0000 (12:16 -0500)
committerDanny Mayer <mayer@ntp.org>
Sun, 16 Dec 2007 17:16:08 +0000 (12:16 -0500)
bk: 47655d58elIUyNUq6g5ebMXQsqk8hw

ntpd/ntp_io.c

index 6471afe21bb6684592727fd340dd050d8e90c46b..a30e943e8709eb24501571d0def9c52bee525e35 100644 (file)
@@ -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);
        }