From fe48290140632f8ffb9da66567f5ce4a1d40c075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Wed, 2 Apr 2025 17:38:31 +0200 Subject: [PATCH] Don't pass edectx from fetch_and_forget 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ns/query.c b/lib/ns/query.c index 871797f1b8..430d41e641 100644 --- a/lib/ns/query.c +++ b/lib/ns/query.c @@ -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);