From f4c06dafd5223b6e5cbe9a38e2041992aa5c7041 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Thu, 7 Oct 1999 19:33:54 +0000 Subject: [PATCH] cancel i/o before detaching from socket --- bin/named/interfacemgr.c | 1 + 1 file changed, 1 insertion(+) 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) {