2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-01 06:55:30 +00:00

Detach from the correct task when canceling.

This commit is contained in:
Bob Halley
1999-07-28 23:25:16 +00:00
parent 11e2a221f1
commit f4e535251b

View File

@@ -2318,7 +2318,7 @@ isc_socket_cancel(isc_socket_t *sock, isc_task_t *task, unsigned int how)
next = ISC_LIST_NEXT(dev, link); next = ISC_LIST_NEXT(dev, link);
if ((task == NULL) || (task == current_task)) if ((task == NULL) || (task == current_task))
send_recvdone_event(sock, &task, &dev, send_recvdone_event(sock, &current_task, &dev,
ISC_R_CANCELED, 1); ISC_R_CANCELED, 1);
dev = next; 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); next = ISC_LIST_NEXT(dev, link);
if ((task == NULL) || (task == current_task)) if ((task == NULL) || (task == current_task))
send_senddone_event(sock, &task, &dev, send_senddone_event(sock, &current_task, &dev,
ISC_R_CANCELED, 1); ISC_R_CANCELED, 1);
dev = next; dev = next;
} }