2
0
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:
Witold Kręcicki 2018-11-05 18:59:44 +00:00
parent ae5c86ba9a
commit b2f8f37b80

View File

@ -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);