1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

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

Jeremy.
This commit is contained in:
Jeremy Allison 0001-01-01 00:00:00 +00:00
parent b4e2fc0bd2
commit 4d25a53c36

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