summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-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;
}