summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-10-15 17:06:41 +0200
committerSteven Barth <steven@midlink.org>2013-10-15 17:06:41 +0200
commit7fd9d455c7f0d19a87f97ce11942d532c71de05f (patch)
treed1f4ca985902f0781426f32e15227fbb8f56e535
parent74cd69a0fe942e03429582f06969d26d478e54aa (diff)
Ignore missing ifname from netifd
-rw-r--r--src/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c
index e33c855..7700c7e 100644
--- a/src/config.c
+++ b/src/config.c
@@ -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);