commit | 7ab78b937fc1b98a1e47a63b2cc1f8451cd7c5fa | [log] [tgz] |
---|---|---|
author | Simon Kelley <simon@thekelleys.org.uk> | Thu May 11 20:33:21 2017 +0100 |
committer | Simon Kelley <simon@thekelleys.org.uk> | Thu May 11 20:33:21 2017 +0100 |
tree | 25e156b0a9c4586f4bf347eba68a3293213eb264 | |
parent | c7be0164ce6ae89d6f2f0ffea14e2612418dd5da [diff] [blame] |
Fix c7be0164ce6ae89d6f2f0ffea14e2612418dd5da
diff --git a/src/dhcp.c b/src/dhcp.c index 232e344..f995f0e 100644 --- a/src/dhcp.c +++ b/src/dhcp.c
@@ -224,7 +224,7 @@ #endif if (!indextoname(daemon->dhcpfd, iface_index, ifr.ifr_name) || - ioctl(daemon->dhcpfd, SIOCGIFFLAGS, &ifr) != -1) + ioctl(daemon->dhcpfd, SIOCGIFFLAGS, &ifr) != 0) return; mess = (struct dhcp_packet *)daemon->dhcp_packet.iov_base;