From: Roy Marples Date: Fri, 27 Sep 2013 06:23:31 +0000 (+0000) Subject: We should abort if no specified interfaces are found. X-Git-Tag: v6.2.0~70 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7910de32828d58d9970a72b68f6142b52849b099;p=thirdparty%2Fdhcpcd.git We should abort if no specified interfaces are found. --- diff --git a/dhcpcd.c b/dhcpcd.c index 066d438f..cd1ed640 100644 --- 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