diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-08-03 19:30:38 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-08-03 20:42:59 +0200 |
commit | c15fb62a731f1a457af94e60ac6a4d23f219a8f6 (patch) | |
tree | c5b787e1b8413b5f7fb31c8f7ed7f218c4fcbe7a /src/libsystemd-network | |
parent | be63641349b1350c6b33976791eb89af7427de7b (diff) |
sd-dhcp-server: check if r < 0
Diffstat (limited to 'src/libsystemd-network')
-rw-r--r-- | src/libsystemd-network/sd-dhcp-server.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd-network/sd-dhcp-server.c b/src/libsystemd-network/sd-dhcp-server.c index 99b833ac6b..2d3eaa35e3 100644 --- a/src/libsystemd-network/sd-dhcp-server.c +++ b/src/libsystemd-network/sd-dhcp-server.c @@ -485,6 +485,8 @@ static int server_send_forcerenew(sd_dhcp_server *server, be32_t address, be32_t r = dhcp_server_send_udp(server, address, &packet->dhcp, sizeof(DHCPMessage) + optoffset); + if (r < 0) + return r; return 0; } |