asyn-ares: remove redundant NULL check

Closes #17720
This commit is contained in:
NINIKA 2025-06-23 17:12:57 +03:00 committed by Daniel Stenberg
parent 2636828eee
commit 05382f3e78
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -451,8 +451,7 @@ CURLcode Curl_async_await(struct Curl_easy *data,
/* Operation complete, if the lookup was successful we now have the entry
in the cache. */
data->state.async.done = TRUE;
if(entry)
*entry = data->state.async.dns;
*entry = data->state.async.dns;
if(result)
ares_cancel(ares->channel);