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