From 2cfc8a45a4035cf8d960bbdcdca241b175e43830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Witold=20Kr=C4=99cicki?= Date: Fri, 9 Oct 2020 22:06:41 +0200 Subject: [PATCH] Shutdown interface if we can't listen on it to avoid shutdown hang --- lib/ns/interfacemgr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ns/interfacemgr.c b/lib/ns/interfacemgr.c index ae8c1c2406..c7bbc753a7 100644 --- a/lib/ns/interfacemgr.c +++ b/lib/ns/interfacemgr.c @@ -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); }