]> 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>
Wed, 7 Oct 2020 23:55:35 +0000 (10:55 +1100)
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

index 57d97c8aa734c0e8dc4655eb85b73ba6c3d7d2b0..1dd82a03001bfc4002ea418a24d2b2a22fc02ea9 100644 (file)
@@ -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__);