fix ifindex detection
authorSteven Barth <steven@midlink.org>
Fri, 3 Jan 2014 09:16:42 +0000 (10:16 +0100)
committerSteven Barth <steven@midlink.org>
Fri, 3 Jan 2014 09:16:42 +0000 (10:16 +0100)
src/config.c

index 98a826f..ed80bef 100644 (file)
@@ -497,7 +497,7 @@ int config_parse_interface(void *data, size_t len, const char *name, bool overwr
                }
        }
 
                }
        }
 
-       iface->ignore = (iface->ifindex = if_nametoindex(iface->ifname)) < 0;
+       iface->ignore = (iface->ifindex = if_nametoindex(iface->ifname)) <= 0;
        return 0;
 
 err:
        return 0;
 
 err: