summaryrefslogtreecommitdiff
path: root/source3/lib/interface.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-11-10 19:02:32 +0000
committerJeremy Allison <jra@samba.org>2000-11-10 19:02:32 +0000
commit3c330068adb081499285d20c8d299d7f70aaf603 (patch)
tree25a8f196674d84dfc1057ee16cc00a76f5a7d841 /source3/lib/interface.c
parentacc31ccbc5b3aaf4c44ed675f8884cc54150046e (diff)
downloadsamba-3c330068adb081499285d20c8d299d7f70aaf603.tar.gz
samba-3c330068adb081499285d20c8d299d7f70aaf603.tar.bz2
samba-3c330068adb081499285d20c8d299d7f70aaf603.zip
Fix from John E. Malmberg <wb8tyw@qsl.net> for -1 return in interfaces scan.
Jeremy. (This used to be commit 4d25a53c36ad2c33cc2ecaf1486e18f1536eff95)
Diffstat (limited to 'source3/lib/interface.c')
-rw-r--r--source3/lib/interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/interface.c b/source3/lib/interface.c
index e535251756..31ec846fdc 100644
--- a/source3/lib/interface.c
+++ b/source3/lib/interface.c
@@ -234,8 +234,8 @@ BOOL interfaces_changed(void)
n = get_interfaces(ifaces, MAX_INTERFACES);
- if (n != total_probed ||
- memcmp(ifaces, probed_ifaces, sizeof(ifaces[0])*n)) {
+ if ((n > 0 )&& (n != total_probed ||
+ memcmp(ifaces, probed_ifaces, sizeof(ifaces[0])*n))) {
return True;
}