Ignore missing ifname from netifd
authorSteven Barth <steven@midlink.org>
Tue, 15 Oct 2013 15:06:41 +0000 (17:06 +0200)
committerSteven Barth <steven@midlink.org>
Tue, 15 Oct 2013 15:06:41 +0000 (17:06 +0200)
src/config.c

index e33c8554fd28392435e51d0a43f448d00941a86a..7700c7eead4f8a977f22a9b5140a4d031b7b98bb 100644 (file)
@@ -284,7 +284,7 @@ int config_parse_interface(void *data, size_t len, const char *name, bool overwr
        else if ((c = tb[IFACE_ATTR_NETWORKID]))
                ifname = blobmsg_get_string(c);
 
-       if (!ifname)
+       if (!iface->ifname[0] && !ifname)
                return -1;
 
        strncpy(iface->ifname, ifname, sizeof(iface->ifname) - 1);