diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-10-21 18:07:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-21 18:07:38 +0200 |
commit | 69f30d4321c3bc8fa27270e3fd36a7a5b4d0a89e (patch) | |
tree | f49c9de9f58f38783418d689c1e0a7bb770ab91c /src/libsystemd-network/sd-dhcp-server.c | |
parent | Merge pull request #17400 from yuwata/network-route-counter-17396 (diff) | |
parent | network: also unref IPv4 ACD clients in Address objects (diff) | |
download | systemd-69f30d4321c3bc8fa27270e3fd36a7a5b4d0a89e.tar.xz systemd-69f30d4321c3bc8fa27270e3fd36a7a5b4d0a89e.zip |
Merge pull request #17356 from yuwata/sd-xxx-stop
network: about sd_xxx_stop()
Diffstat (limited to 'src/libsystemd-network/sd-dhcp-server.c')
-rw-r--r-- | src/libsystemd-network/sd-dhcp-server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-dhcp-server.c b/src/libsystemd-network/sd-dhcp-server.c index 5ec705fbc8..cab7707017 100644 --- a/src/libsystemd-network/sd-dhcp-server.c +++ b/src/libsystemd-network/sd-dhcp-server.c @@ -225,7 +225,8 @@ sd_event *sd_dhcp_server_get_event(sd_dhcp_server *server) { } int sd_dhcp_server_stop(sd_dhcp_server *server) { - assert_return(server, -EINVAL); + if (!server) + return 0; server->receive_message = sd_event_source_unref(server->receive_message); |