summaryrefslogtreecommitdiff
path: root/lib/hostasyn.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2006-07-25 10:49:12 +0000
committerGisle Vanem <gvanem@broadpark.no>2006-07-25 10:49:12 +0000
commit4a1a1a75fb88481bd898e2168d1b20d0697b66e4 (patch)
tree504f0e5b10c10ce76acbacae5a1328dacc5a15a7 /lib/hostasyn.c
parente4d6ade4b318c2694937695aeaf2b1e542d394f6 (diff)
downloadcurl-4a1a1a75fb88481bd898e2168d1b20d0697b66e4.tar.gz
Added note for CURLRES_ARES and CURLRES_IPV6.
Diffstat (limited to 'lib/hostasyn.c')
-rw-r--r--lib/hostasyn.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/hostasyn.c b/lib/hostasyn.c
index f7f7b6a8f..5efd8320b 100644
--- a/lib/hostasyn.c
+++ b/lib/hostasyn.c
@@ -112,8 +112,8 @@ static CURLcode addrinfo_callback(void *arg, /* "struct connectdata *" */
if(CURL_ASYNC_SUCCESS == status) {
/*
- * IPv4: Curl_addrinfo_copy() copies the address and returns an allocated
- * version.
+ * IPv4/ares: Curl_addrinfo_copy() copies the address and returns an
+ * allocated version.
*
* IPv6: Curl_addrinfo_copy() returns the input pointer!
*/
@@ -164,6 +164,9 @@ CURLcode Curl_addrinfo6_callback(void *arg, /* "struct connectdata *" */
int status,
struct addrinfo *ai)
{
+ /* NOTE: for CURLRES_ARES, the 'ai' argument is really a
+ * 'struct hostent' pointer.
+ */
return addrinfo_callback(arg, status, ai);
}
#endif