From: Mark Andrews Date: Wed, 7 Oct 2020 23:55:35 +0000 (+1100) Subject: Restore the dns_message_reset() call before the dns_dispatch_getnext() X-Git-Tag: v9.17.6~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f63bb15b3ce0984ecf1971c2736477e5c3ac67f;p=thirdparty%2Fbind9.git 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. --- diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index 57d97c8aa73..1dd82a03001 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__);