]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
asyn-ares: remove redundant NULL check
authorNINIKA <dcnick3@users.noreply.github.com>
Mon, 23 Jun 2025 14:12:57 +0000 (17:12 +0300)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 23 Jun 2025 14:34:43 +0000 (16:34 +0200)
Closes #17720

lib/asyn-ares.c

index 10f870a15af65b5a8910affc0af0854c8970aa37..4ea2e0724c1218f3f10148cf85f41a3ed2d4bf0b 100644 (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);