]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Only allow lo0 through allow
authorRoy Marples <roy@marples.name>
Mon, 20 Apr 2009 19:40:09 +0000 (19:40 +0000)
committerRoy Marples <roy@marples.name>
Mon, 20 Apr 2009 19:40:09 +0000 (19:40 +0000)
net.c

diff --git a/net.c b/net.c
index b1c2753f660212a306ef09b730ede755940e82bf..432398d194913255fb4afb54ada241c7f80be78d 100644 (file)
--- a/net.c
+++ b/net.c
@@ -321,7 +321,7 @@ discover_interfaces(int argc, char * const *argv)
                        continue;
                /* Don't allow loopback unless explicit */
                if (ifp->flags & IFF_LOOPBACK) {
-                       if (argc == 0 && ifdc == 0) {
+                       if (argc == 0 && ifac == 0) {
                                free_interface(ifp);
                                continue;
                        }