ip_mroute: release epoch lock if mrouter is not configured

Add mising "else" branch to release a lock if mrouter is not
configured.

Obtained from:		Semihalf
Sponsored by:		Stormshield
This commit is contained in:
Wojciech Macek 2022-01-22 11:47:39 +01:00
parent fa66950534
commit 889c60500d

View File

@ -890,6 +890,8 @@ rip_detach(struct socket *so)
MROUTER_RLOCK();
if (so == V_ip_mrouter && ip_mrouter_done)
ip_mrouter_done(MROUTER_RLOCK_PARAM_PTR);
else
MROUTER_RUNLOCK();
INP_WLOCK(inp);
INP_HASH_WLOCK(&V_ripcbinfo);