From f4e535251bf2483cd13cf438c69132404bc70ea9 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Wed, 28 Jul 1999 23:25:16 +0000 Subject: [PATCH] Detach from the correct task when canceling. --- lib/isc/unix/socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/isc/unix/socket.c b/lib/isc/unix/socket.c index 339021d896..adf7452fc1 100644 --- a/lib/isc/unix/socket.c +++ b/lib/isc/unix/socket.c @@ -2318,7 +2318,7 @@ isc_socket_cancel(isc_socket_t *sock, isc_task_t *task, unsigned int how) next = ISC_LIST_NEXT(dev, link); if ((task == NULL) || (task == current_task)) - send_recvdone_event(sock, &task, &dev, + send_recvdone_event(sock, ¤t_task, &dev, ISC_R_CANCELED, 1); dev = next; } @@ -2337,7 +2337,7 @@ isc_socket_cancel(isc_socket_t *sock, isc_task_t *task, unsigned int how) next = ISC_LIST_NEXT(dev, link); if ((task == NULL) || (task == current_task)) - send_senddone_event(sock, &task, &dev, + send_senddone_event(sock, ¤t_task, &dev, ISC_R_CANCELED, 1); dev = next; }