summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-08-03 19:45:20 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-08-03 20:42:59 +0200
commit621ac3d2cc8f37169166df9c7f379b0cb6b17e36 (patch)
tree02bfd6564ad92f011ea8dc03ac7d576a187b15af /src
parentc15fb62a731f1a457af94e60ac6a4d23f219a8f6 (diff)
sd-dhcp-server: avoid returning garbage value
Force renewing with a pool size of 0 would return the uninitialized r.
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd-network/sd-dhcp-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-dhcp-server.c b/src/libsystemd-network/sd-dhcp-server.c
index 2d3eaa35e3..50d9b7fcfc 100644
--- a/src/libsystemd-network/sd-dhcp-server.c
+++ b/src/libsystemd-network/sd-dhcp-server.c
@@ -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);