From: Yang Tse Date: Mon, 27 Oct 2008 08:20:36 +0000 (+0000) Subject: For tracing purposes log a fake call to getaddrinfo X-Git-Tag: curl-7_19_1~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1498de83d601abcfa79c1e0f36d61dfc6a6a785f;p=thirdparty%2Fcurl.git For tracing purposes log a fake call to getaddrinfo when allocating/building the fake Curl_addrinfo. --- diff --git a/tests/libtest/lib558.c b/tests/libtest/lib558.c index 9dabbb718a..41f8c86783 100644 --- a/tests/libtest/lib558.c +++ b/tests/libtest/lib558.c @@ -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; }