mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
dighost.c: after invalidating buffer we need to reinit it
This commit is contained in:
parent
ae5c86ba9a
commit
b2f8f37b80
@ -3919,6 +3919,7 @@ recv_done(isc_task_t *task, isc_event_t *event) {
|
||||
|
||||
udp_mismatch:
|
||||
isc_buffer_invalidate(&query->recvbuf);
|
||||
isc_buffer_init(&query->recvbuf, query->recvspace, COMMSIZE);
|
||||
isc_buffer_availableregion(&query->recvbuf, &r);
|
||||
result = isc_socket_recv(query->sock, &r, 1,
|
||||
global_task, recv_done, query);
|
||||
|
Loading…
x
Reference in New Issue
Block a user