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
This commit is contained in:
Daniel Stenberg 2025-10-10 23:54:15 +02:00
parent 142d61a0ee
commit b3f9c837d3
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View 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) {