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:
parent
e29f62f0a7
commit
1498de83d6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user