config: use correct defaults if interface is not in UCI
authorSteven Barth <steven@midlink.org>
Wed, 9 Apr 2014 12:24:31 +0000 (14:24 +0200)
committerSteven Barth <steven@midlink.org>
Wed, 9 Apr 2014 12:24:31 +0000 (14:24 +0200)
src/config.c

index a392af7b3fcce34002d4facd72cd8f0c8f25da96..4cde4312c926742b796002aa08dcd03d43b52277 100644 (file)
@@ -285,6 +285,7 @@ int config_parse_interface(void *data, size_t len, const char *name, bool overwr
 
                strncpy(iface->name, name, sizeof(iface->name) - 1);
                list_add(&iface->head, &interfaces);
+               overwrite = true;
        }
 
        const char *ifname = NULL;