Fix compile error caused by unknown variable.
authorGerald (Jerry) Carter <jerry@samba.org>
Sun, 21 Oct 2007 18:44:29 +0000 (13:44 -0500)
committerGerald (Jerry) Carter <jerry@samba.org>
Sun, 21 Oct 2007 18:44:29 +0000 (13:44 -0500)
(This used to be commit dfef16ac4318b460a5bd29475eb395c1905a5cd8)

source3/lib/interfaces.c

index 3b15e3e87b96f41601dccbe8c8133e0d389326dc..ae6c972d24a1096e63c786f4df9eecdca0ad8134 100644 (file)
@@ -210,7 +210,7 @@ static int _get_interfaces(struct iface_struct *ifaces, int max_interfaces)
 
                ifaces[total].flags = ifr[i].ifr_flags;
 
-               if (!(flags & IFF_UP)) {
+               if (!(ifaces[total].flags & IFF_UP)) {
                        continue;
                }