From 2c3200f5785fed310d0541d9c428d822248869ed Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 22 Jul 2026 00:05:27 +0200 Subject: [PATCH] dnscache: avoid double unlock Follow-up to 7ad33fe56f25424fb51a1040 Pointed out by Zeropath Closes #22364 --- lib/dnscache.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/dnscache.c b/lib/dnscache.c index 9f435cc0cd..73de3cacb3 100644 --- a/lib/dnscache.c +++ b/lib/dnscache.c @@ -721,7 +721,6 @@ CURLcode Curl_dnscache_add_negative(struct Curl_easy *data, /* release the returned reference; the cache itself will keep the * entry alive: */ dns->refcount--; - dnscache_unlock(data, dnscache); CURL_TRC_DNS(data, "cache negative name resolve for %s:%d type=%s", host, port, Curl_resolv_query_str(dns_queries)); }