]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Restore the dns_message_reset() call before the dns_dispatch_getnext()
authorMark Andrews <marka@isc.org>
Wed, 7 Oct 2020 23:55:35 +0000 (10:55 +1100)
committerMark Andrews <marka@isc.org>
Thu, 8 Oct 2020 05:27:10 +0000 (16:27 +1100)
This was accidentally lost in the process of moving rmessage from fctx
to query.  Without this dns_message_setclass() will fail.

(cherry picked from commit 1f63bb15b3ce0984ecf1971c2736477e5c3ac67f)

lib/dns/resolver.c

index b6d59a6bbf1b466026c63e38c40412c05bd0c010..d337ed92d3a0ff4baf5bc8903443d3b25bd3f1e6 100644 (file)
@@ -9651,6 +9651,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__);