]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Don't pass edectx from fetch_and_forget
authorOndřej Surý <ondrej@isc.org>
Wed, 2 Apr 2025 15:38:31 +0000 (17:38 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 2 Apr 2025 15:38:31 +0000 (17:38 +0200)
Pass NULL as edectx for the fetch_and_forget() fetches as nobody
is reading the EDE contexts and it can mess the main client buffer.

lib/ns/query.c

index 871797f1b80c27036dfdd711f32d3e850b41ac19..430d41e6418910dfbe4f7334670b1657408a954b 100644 (file)
@@ -2804,8 +2804,8 @@ fetch_and_forget(ns_client_t *client, dns_name_t *qname, dns_rdatatype_t qtype,
        result = dns_resolver_createfetch(
                client->view->resolver, qname, qtype, NULL, NULL, NULL,
                peeraddr, client->message->id, options, 0, NULL,
-               client->query.qc, client->manager->loop, cb, client,
-               &client->edectx, tmprdataset, NULL, fetchp);
+               client->query.qc, client->manager->loop, cb, client, NULL,
+               tmprdataset, NULL, fetchp);
        if (result != ISC_R_SUCCESS) {
                ns_client_putrdataset(client, &tmprdataset);
                isc_nmhandle_detach(handlep);