summaryrefslogtreecommitdiffhomepage
path: root/src/dhcpv4.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-10-16 10:42:16 +0200
committerSteven Barth <steven@midlink.org>2013-10-16 10:42:16 +0200
commit05969d06380387fc6d093e80b142145c2a9c2293 (patch)
treeb99f9c8b1743a2c0b59d6282b028b17ab1fee518 /src/dhcpv4.c
parent86b63fbe80f9eea50543634f40da0b0a64e6ac02 (diff)
Minor fixes
Diffstat (limited to 'src/dhcpv4.c')
-rw-r--r--src/dhcpv4.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dhcpv4.c b/src/dhcpv4.c
index b4b0720..6f15a0a 100644
--- a/src/dhcpv4.c
+++ b/src/dhcpv4.c
@@ -49,6 +49,7 @@ int init_dhcpv4(void)
int setup_dhcpv4_interface(struct interface *iface, bool enable)
{
if (iface->dhcpv4_event.uloop.fd > 0) {
+ uloop_fd_delete(&iface->dhcpv4_event.uloop);
close(iface->dhcpv4_event.uloop.fd);
iface->dhcpv4_event.uloop.fd = -1;
}