treewide: initialize properly file descriptors
[project/odhcpd.git] / src / config.c
index e928536af794bc38036913df0d642b02e2e4232f..3e1b3f174bc9c4e828a2f01c9dc36b06cb81c19c 100644 (file)
@@ -430,6 +430,9 @@ int config_parse_interface(void *data, size_t len, const char *name, bool overwr
 
                iface->name = strcpy(new_name, name);
                iface->avl.key = iface->name;
+               iface->dhcpv6_event.uloop.fd = -1;
+               iface->ndp_event.uloop.fd = -1;
+               iface->dhcpv4_event.uloop.fd = -1;
                set_interface_defaults(iface);
 
                avl_insert(&interfaces, &iface->avl);