diff --git a/bin/named/interfacemgr.c b/bin/named/interfacemgr.c index 1896b5a2bb..7ac738ca61 100644 --- a/bin/named/interfacemgr.c +++ b/bin/named/interfacemgr.c @@ -248,6 +248,7 @@ ns_interface_destroy(ns_interface_t **ifpret) { ISC_LIST_UNLINK(ifp->mgr->interfaces, ifp, link); dns_dispatch_detach(&ifp->udpdispatch); + isc_socket_cancel(ifp->udpsocket, NULL, ISC_SOCKCANCEL_ALL); isc_socket_detach(&ifp->udpsocket); if (ifp->tcpsocket != NULL) {