2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

lock dispatch before reporting state

This commit is contained in:
Mark Andrews
2019-11-22 10:49:40 +11:00
parent caf073dbe7
commit 3075445ed6

View File

@@ -1334,12 +1334,12 @@ tcp_recv(isc_task_t *task, isc_event_t *ev_in) {
qid = disp->qid;
LOCK(&disp->lock);
dispatch_log(disp, LVL(90),
"got TCP packet: requests %d, buffers %d, recvs %d",
disp->requests, disp->tcpbuffers, disp->recv_pending);
LOCK(&disp->lock);
INSIST(disp->recv_pending != 0);
disp->recv_pending = 0;