From b2f8f37b80c45b81f0da5f4f8aa2fd579dcb41b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Witold=20Kr=C4=99cicki?= Date: Mon, 5 Nov 2018 18:59:44 +0000 Subject: [PATCH] dighost.c: after invalidating buffer we need to reinit it --- bin/dig/dighost.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index f79c92a98d..de7307aa43 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -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);