mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +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:
parent
c15fb62a73
commit
621ac3d2cc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user