diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-05-07 18:54:07 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-05-08 08:12:31 +0200 |
commit | 706875f16572e77179693efe9906bd211dfff3ef (patch) | |
tree | 9f0da22d889fb83b60d2f6487bbd9ac4846ef674 /src/network/networkd-dhcp-server-bus.c | |
parent | local-addresses: wrap long comment (diff) | |
download | systemd-706875f16572e77179693efe9906bd211dfff3ef.tar.xz systemd-706875f16572e77179693efe9906bd211dfff3ef.zip |
network: check that bus is ready at one more place
Diffstat (limited to '')
-rw-r--r-- | src/network/networkd-dhcp-server-bus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/networkd-dhcp-server-bus.c b/src/network/networkd-dhcp-server-bus.c index 91a10dc33a..a38cb99c2c 100644 --- a/src/network/networkd-dhcp-server-bus.c +++ b/src/network/networkd-dhcp-server-bus.c @@ -81,6 +81,9 @@ static int dhcp_server_emit_changed(Link *link, const char *property, ...) { assert(link); + if (sd_bus_is_ready(link->manager->bus) <= 0) + return 0; + path = link_bus_path(link); if (!path) return log_oom(); |