Commit f4c06daf authored by Bob Halley's avatar Bob Halley
Browse files

cancel i/o before detaching from socket

parent 1c7ac6d8
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment