mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-27 12:53:25 -04:00
dighost.c: after invalidating buffer we need to reinit it
This commit is contained in:
parent
ae5c86ba9a
commit
b2f8f37b80
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Reference in a new issue