3913. [bug] Address race issue in dispatch. [RT #36731]
(cherry picked from commit 493f3eb297)
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
--- 9.9.6b2 released ---
|
||||
|
||||
3913. [bug] Address race issue in dispatch. [RT #36731]
|
||||
|
||||
3910. [bug] Fix races to free event during shutdown. [RT#36720]
|
||||
|
||||
3909. [bug] When computing the number of elements required for a
|
||||
|
||||
+4
-6
@@ -1327,8 +1327,8 @@ udp_recv(isc_event_t *ev_in, dns_dispatch_t *disp, dispsocket_t *dispsock) {
|
||||
} else {
|
||||
free_buffer(disp, ev->region.base, ev->region.length);
|
||||
|
||||
UNLOCK(&disp->lock);
|
||||
isc_event_free(&ev_in);
|
||||
UNLOCK(&disp->lock);
|
||||
return;
|
||||
}
|
||||
} else if (ev->result != ISC_R_SUCCESS) {
|
||||
@@ -1339,8 +1339,8 @@ udp_recv(isc_event_t *ev_in, dns_dispatch_t *disp, dispsocket_t *dispsock) {
|
||||
"odd socket result in udp_recv(): %s",
|
||||
isc_result_totext(ev->result));
|
||||
|
||||
UNLOCK(&disp->lock);
|
||||
isc_event_free(&ev_in);
|
||||
UNLOCK(&disp->lock);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1515,9 +1515,8 @@ udp_recv(isc_event_t *ev_in, dns_dispatch_t *disp, dispsocket_t *dispsock) {
|
||||
*/
|
||||
deactivate_dispsocket(disp, dispsock);
|
||||
}
|
||||
UNLOCK(&disp->lock);
|
||||
|
||||
isc_event_free(&ev_in);
|
||||
UNLOCK(&disp->lock);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -1699,9 +1698,8 @@ tcp_recv(isc_task_t *task, isc_event_t *ev_in) {
|
||||
restart:
|
||||
(void)startrecv(disp, NULL);
|
||||
|
||||
UNLOCK(&disp->lock);
|
||||
|
||||
isc_event_free(&ev_in);
|
||||
UNLOCK(&disp->lock);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user