diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_mroute.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c index e889b7d..78079ff 100644 --- a/sys/netinet/ip_mroute.c +++ b/sys/netinet/ip_mroute.c @@ -724,8 +724,10 @@ ip_mrouter_init(struct socket *so, int version) if_detach_event_tag = EVENTHANDLER_REGISTER(ifnet_departure_event, if_detached_event, NULL, EVENTHANDLER_PRI_ANY); - if (if_detach_event_tag == NULL) + if (if_detach_event_tag == NULL) { + mtx_unlock(&mrouter_mtx); return (ENOMEM); + } callout_reset(&expire_upcalls_ch, EXPIRE_TIMEOUT, expire_upcalls, NULL); |