1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-11 20:58:27 +03:00

sd-dhcp-server: make sd_dhcp_server_is_running() silently work with NULL

We already do in the same way for sd-dhcp-client and friends.
This commit is contained in:
Yu Watanabe 2023-10-12 18:35:55 +09:00
parent cb0e97e7de
commit 39ba10f19e

View File

@ -113,7 +113,8 @@ int sd_dhcp_server_configure_pool(
}
int sd_dhcp_server_is_running(sd_dhcp_server *server) {
assert_return(server, false);
if (!server)
return false;
return !!server->receive_message;
}