2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 21:17:54 +00:00

cancel i/o before detaching from socket

This commit is contained in:
Bob Halley 1999-10-07 19:33:54 +00:00
parent 1c7ac6d8f5
commit f4c06dafd5

View File

@ -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) {