1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

For tracing purposes log a fake call to getaddrinfo

when allocating/building the fake Curl_addrinfo.
This commit is contained in:
Yang Tse 2008-10-27 08:20:36 +00:00
parent e29f62f0a7
commit 1498de83d6

View File

@ -51,6 +51,13 @@ static Curl_addrinfo *fake_ai(void)
ai->ai_family = AF_INET;
ai->ai_addrlen = ss_size;
#if defined(ENABLE_IPV6) && defined(CURLDEBUG)
/* For tracing purposes log a fake call to getaddrinfo */
if(logfile)
fprintf(logfile, "ADDR %s:%d getaddrinfo() = %p\n",
__FILE__, __LINE__, (void *)ai);
#endif
return ai;
}