mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
Detach from the correct task when canceling.
This commit is contained in:
@@ -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, ¤t_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, ¤t_task, &dev,
|
||||||
ISC_R_CANCELED, 1);
|
ISC_R_CANCELED, 1);
|
||||||
dev = next;
|
dev = next;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user