]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
We should abort if no specified interfaces are found.
authorRoy Marples <roy@marples.name>
Fri, 27 Sep 2013 06:23:31 +0000 (06:23 +0000)
committerRoy Marples <roy@marples.name>
Fri, 27 Sep 2013 06:23:31 +0000 (06:23 +0000)
dhcpcd.c

index 066d438f41ff019a84da2c846f2580e06bae6b92..cd1ed64062fa13f452bf5a512b042bcb50981426 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -1238,7 +1238,7 @@ main(int argc, char **argv)
                        syslog(LOG_ERR, "%s: interface not found or invalid",
                            ifv[i]);
        }
-       if (ifaces == NULL) {
+       if (ifaces == NULL || TAILQ_FIRST(ifaces) == NULL) {
                if (ifc == 0)
                        syslog(LOG_ERR, "no valid interfaces found");
                else