Skip to content

Commit

Permalink
Added note for CURLRES_ARES and CURLRES_IPV6.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gisle Vanem committed Jul 25, 2006
1 parent e4d6ade commit 4a1a1a7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/hostasyn.c
Expand Up @@ -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!
*/
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4a1a1a7

Please sign in to comment.