summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-link-bus.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-07-20 22:21:28 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-07-22 12:55:14 +0200
commitc2a6595014c33592a541654b396c8c3f2f36284e (patch)
tree3a5e4898c04c5d815f152a559db063d67cbedd00 /src/network/networkd-link-bus.c
parenttree-wide: use siphash24_compress_string() where it is applicable (diff)
downloadsystemd-c2a6595014c33592a541654b396c8c3f2f36284e.tar.xz
systemd-c2a6595014c33592a541654b396c8c3f2f36284e.zip
network: introduce link_save_and_clean()
Diffstat (limited to 'src/network/networkd-link-bus.c')
-rw-r--r--src/network/networkd-link-bus.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/networkd-link-bus.c b/src/network/networkd-link-bus.c
index be19671505..ad114e1173 100644
--- a/src/network/networkd-link-bus.c
+++ b/src/network/networkd-link-bus.c
@@ -629,10 +629,9 @@ int bus_link_method_reconfigure(sd_bus_message *message, void *userdata, sd_bus_
return r;
link_set_state(l, LINK_STATE_INITIALIZED);
- r = link_save(l);
+ r = link_save_and_clean(l);
if (r < 0)
return r;
- link_clean(l);
return sd_bus_reply_method_return(message, NULL);
}