Good catch, does the following work? 2010-07-31 Alfred M. Szmidt <a...@gnu.org>
* ifconfig/options.c (parse_cmdline): Error out if IFNX is NULL. @@ -589,8 +587,9 @@ parse_cmdline (int argc, char *argv[]) { /* No interfaces specified. Get a list of all interfaces. */ struct if_nameindex *ifnx, *ifnxp; - ifnx = ifnxp = if_nameindex (); + if (!ifnx) + error (EXIT_FAILURE, 0, "could not get list of interfaces"); while (ifnxp->if_index != 0 || ifnxp->if_name != NULL) { struct ifconfig *ifp;