dnscache: avoid double unlock

Follow-up to 7ad33fe56f

Pointed out by Zeropath

Closes #22364
This commit is contained in:
Daniel Stenberg 2026-07-22 00:05:27 +02:00
parent 41b4a91123
commit 2c3200f578
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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));
}