mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-02 21:40:43 -05:00
Detach from the correct task when canceling.
This commit is contained in:
parent
11e2a221f1
commit
f4e535251b
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue