summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/interfaces.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/interfaces.c b/source3/lib/interfaces.c
index 3b15e3e87b..ae6c972d24 100644
--- a/source3/lib/interfaces.c
+++ b/source3/lib/interfaces.c
@@ -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;
}