]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Shutdown interface if we can't listen on it to avoid shutdown hang
authorWitold Kręcicki <wpk@isc.org>
Fri, 9 Oct 2020 20:06:41 +0000 (22:06 +0200)
committerOndřej Surý <ondrej@sury.org>
Tue, 10 Nov 2020 13:17:09 +0000 (14:17 +0100)
lib/ns/interfacemgr.c

index ae8c1c2406b9bbe477fb62a763fe94d1f4fac0bc..c7bbc753a7f20cf9abde02bd18544957b3d630c7 100644 (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);
 }