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:
parent
acc31ccbc5
commit
3c330068ad
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user