3913. [bug] Address race issue in dispatch. [RT #36731]

(cherry picked from commit 493f3eb297)
This commit is contained in:
Mark Andrews
2014-08-06 18:51:16 +10:00
parent 74da561369
commit a369b29fa3
2 changed files with 6 additions and 6 deletions
+2
View File
@@ -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
View File
@@ -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);
}
/*