In case of errors, we were leaking events.
if ((fd = priv_iface_init(hardware->h_ifname)) == -1)
return -1;
hardware->h_sendfd = fd;
- levent_hardware_add_fd(hardware, fd);
if ((status = iface_set_filter(hardware->h_ifname, fd)) != 0) {
close(fd);
return status;
}
iface_multicast(cfg, mastername, 0);
+ levent_hardware_add_fd(hardware, hardware->h_sendfd);
levent_hardware_add_fd(hardware, fd);
LLOG_DEBUG("interface %s initialized (fd=%d,master=%s[%d])",
hardware->h_ifname,