Shutdown interface if we can't listen on it to avoid shutdown hang

This commit is contained in:
Witold Kręcicki
2020-11-10 14:17:09 +01:00
committed by Ondřej Surý
parent f68fe9ff14
commit 2cfc8a45a4
+1
View File
@@ -597,6 +597,7 @@ cleanup_interface:
LOCK(&ifp->mgr->lock);
ISC_LIST_UNLINK(ifp->mgr->interfaces, ifp, link);
UNLOCK(&ifp->mgr->lock);
ns_interface_shutdown(ifp);
ns_interface_detach(&ifp);
return (result);
}