]> 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 02:10:31 +0000 (13:10 +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 e3f9aef95cc06f8a05d9e816a6eab2bb666ff023..14cf7f1c98498e3d25cf1b094526f5adcc9f68f6 100644 (file)
@@ -8815,6 +8815,7 @@ resquery_response(isc_task_t *task, isc_event_t *event) {
                FCTXTRACE("nextitem");
                inc_stats(fctx->res, dns_resstatscounter_nextitem);
                INSIST(query->dispentry != NULL);
+               dns_message_reset(query->rmessage, DNS_MESSAGE_INTENTPARSE);
                result = dns_dispatch_getnext(query->dispentry, &devent);
                if (result != ISC_R_SUCCESS)
                        fctx_done(fctx, result, __LINE__);