From 1f63bb15b3ce0984ecf1971c2736477e5c3ac67f Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 8 Oct 2020 10:55:35 +1100 Subject: [PATCH] Restore the dns_message_reset() call before the dns_dispatch_getnext() This was accidentally lost in the process of moving rmessage from fctx to query. Without this dns_message_setclass() will fail. --- lib/dns/resolver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index 57d97c8aa7..1dd82a0300 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -9565,6 +9565,7 @@ rctx_next(respctx_t *rctx) { FCTXTRACE("nextitem"); inc_stats(rctx->fctx->res, dns_resstatscounter_nextitem); INSIST(rctx->query->dispentry != NULL); + dns_message_reset(rctx->query->rmessage, DNS_MESSAGE_INTENTPARSE); result = dns_dispatch_getnext(rctx->query->dispentry, &rctx->devent); if (result != ISC_R_SUCCESS) { fctx_done(rctx->fctx, result, __LINE__);