]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
asyn-ares: remove wrong comment about the callback argument
authorDaniel Stenberg <daniel@haxx.se>
Fri, 10 Oct 2025 21:54:15 +0000 (23:54 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 12 Oct 2025 08:30:54 +0000 (10:30 +0200)
Both the c-ares documentation and the c-ares source code contradict the
previous comment (and mentions/contains no such restriction).

Ref: #19001
Closes #19014

lib/asyn-ares.c

index d39db23a7bdb0d9ec353891fb227d19de1dec8a1..040100acec36d183bb256875e98c4ad000be16b1 100644 (file)
@@ -517,8 +517,6 @@ static void async_ares_hostbyname_cb(void *user_data,
   (void)timeouts; /* ignored */
 
   if(ARES_EDESTRUCTION == status)
-    /* when this ares handle is getting destroyed, the 'arg' pointer may not
-       be valid so only defer it when we know the 'status' says its fine! */
     return;
 
   if(ARES_SUCCESS == status) {