device: apply config changes from device sections
[project/netifd.git] / config.c
index 90ec979..8b6a5ba 100644 (file)
--- a/config.c
+++ b/config.c
@@ -217,7 +217,7 @@ config_init_devices(void)
                        if (!dev)
                                continue;
 
                        if (!dev)
                                continue;
 
-                       device_set_config(dev, dev->type, b.head);
+                       device_apply_config(dev, dev->type, blob_memdup(b.head));
                }
                dev->default_config = false;
        }
                }
                dev->default_config = false;
        }