]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: check that bus is ready at one more place
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 7 May 2021 16:54:07 +0000 (01:54 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 8 May 2021 06:12:31 +0000 (15:12 +0900)
src/network/networkd-dhcp-server-bus.c

index 91a10dc33a036edc67f420d3b902f5fed0856a72..a38cb99c2cd116590c20966f45a4b650e427525d 100644 (file)
@@ -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();