From 3c330068adb081499285d20c8d299d7f70aaf603 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 10 Nov 2000 19:02:32 +0000 Subject: Fix from John E. Malmberg for -1 return in interfaces scan. Jeremy. (This used to be commit 4d25a53c36ad2c33cc2ecaf1486e18f1536eff95) --- source3/lib/interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/lib/interface.c') diff --git a/source3/lib/interface.c b/source3/lib/interface.c index e5352517567..31ec846fdca 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; } -- cgit