mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
Fix from John E. Malmberg <wb8tyw@qsl.net> for -1 return in interfaces scan.
Jeremy.
This commit is contained in:
parent
b4e2fc0bd2
commit
4d25a53c36
@ -234,8 +234,8 @@ BOOL interfaces_changed(void)
|
|||||||
|
|
||||||
n = get_interfaces(ifaces, MAX_INTERFACES);
|
n = get_interfaces(ifaces, MAX_INTERFACES);
|
||||||
|
|
||||||
if (n != total_probed ||
|
if ((n > 0 )&& (n != total_probed ||
|
||||||
memcmp(ifaces, probed_ifaces, sizeof(ifaces[0])*n)) {
|
memcmp(ifaces, probed_ifaces, sizeof(ifaces[0])*n))) {
|
||||||
return True;
|
return True;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user