X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fodhcpd.git;a=blobdiff_plain;f=src%2Fdhcpv4.c;h=6f15a0ab586274d33b2afe6cd61b132d2addab9f;hp=b4b072041c93ec43ae763350e8a457a7da91d765;hb=05969d06380387fc6d093e80b142145c2a9c2293;hpb=86b63fbe80f9eea50543634f40da0b0a64e6ac02 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; }