discover: Handle incoming configuration messages
[petitboot] / lib / pb-config / pb-config.c
index 40bc39fc516a36da4593899cbe762bd36d26162d..915a01d47abaaab8a7929eef6f2abddc7e90d1fb 100644 (file)
@@ -100,9 +100,9 @@ int config_set(struct config *newconfig)
                return 0;
 
        pb_log("new configuration data received\n");
-       dump_config(config);
+       dump_config(newconfig);
 
-       rc = storage->save(storage, config);
+       rc = storage->save(storage, newconfig);
 
        if (!rc)
                config = talloc_steal(config_ctx, newconfig);