summaryrefslogtreecommitdiffstats
path: root/net.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-04-20 19:40:09 +0000
committerRoy Marples <roy@marples.name>2009-04-20 19:40:09 +0000
commit86c4061c5c4850802ab12b7df52bb10578db98b1 (patch)
tree0f62c2714d6fa6b9104b06a42fb9dcaaa79cb0b4 /net.c
parent53a7a8d017d278063d1a7426bc4a8811836b13a2 (diff)
downloaddhcpcd-86c4061c5c4850802ab12b7df52bb10578db98b1.tar.xz
Only allow lo0 through allow
Diffstat (limited to 'net.c')
-rw-r--r--net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net.c b/net.c
index b1c2753f..432398d1 100644
--- 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;
}