diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-10-24 14:43:05 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-11-13 17:28:18 +0800 |
commit | 52bec18801b226b57f53d9f075addd2c07caa3db (patch) | |
tree | 73f23d4eb9a812768710a75100607739074d6527 /lib/pb-config/pb-config.c | |
parent | 7832d10c59cfe7f06e19bc6f0b6acaac1a552618 (diff) | |
download | talos-petitboot-52bec18801b226b57f53d9f075addd2c07caa3db.tar.gz talos-petitboot-52bec18801b226b57f53d9f075addd2c07caa3db.zip |
discover: Handle incoming configuration messages
When the client sends us a PB_PROTOCOL_ACTION_CONFIG message, we want to
update the current config.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'lib/pb-config/pb-config.c')
-rw-r--r-- | lib/pb-config/pb-config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pb-config/pb-config.c b/lib/pb-config/pb-config.c index 40bc39f..915a01d 100644 --- a/lib/pb-config/pb-config.c +++ b/lib/pb-config/pb-config.c @@ -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); |