From: Daniel Stenberg Date: Fri, 10 Oct 2025 21:54:15 +0000 (+0200) Subject: asyn-ares: remove wrong comment about the callback argument X-Git-Tag: rc-8_17_0-3~205 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3f9c837d3906c8f8214e848139f544c777240ab;p=thirdparty%2Fcurl.git asyn-ares: remove wrong comment about the callback argument 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 --- diff --git a/lib/asyn-ares.c b/lib/asyn-ares.c index d39db23a7b..040100acec 100644 --- a/lib/asyn-ares.c +++ b/lib/asyn-ares.c @@ -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) {