1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-11 09:18:07 +03:00

sd-dhcp-server: avoid returning garbage value

Force renewing with a pool size of 0 would return the uninitialized r.
This commit is contained in:
Thomas Hindoe Paaboel Andersen 2014-08-03 19:45:20 +02:00
parent c15fb62a73
commit 621ac3d2cc

View File

@ -919,7 +919,7 @@ int sd_dhcp_server_start(sd_dhcp_server *server) {
int sd_dhcp_server_forcerenew(sd_dhcp_server *server) {
unsigned i;
int r;
int r = 0;
assert_return(server, -EINVAL);
assert(server->bound_leases);