1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

Fix from John E. Malmberg <wb8tyw@qsl.net> for -1 return in interfaces scan.

Jeremy.
(This used to be commit 4d25a53c36)
This commit is contained in:
Jeremy Allison 2000-11-10 19:02:32 +00:00
parent acc31ccbc5
commit 3c330068ad

View File

@ -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;
}