switch (event) {
case NETEV_IFINDEX_CHANGE:
iface = info->iface;
- if (iface && iface->router_event.uloop.fd >= 0)
+ if (iface && iface->router_event.uloop.fd >= 0) {
close(iface->router_event.uloop.fd);
+ iface->router_event.uloop.fd = -1;
+ }
break;
case NETEV_ROUTE6_ADD:
case NETEV_ROUTE6_DEL: