diff options
author | Yang Tse <yangsita@gmail.com> | 2008-10-27 08:20:36 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-10-27 08:20:36 +0000 |
commit | 1498de83d601abcfa79c1e0f36d61dfc6a6a785f (patch) | |
tree | 921843ff5e0ac02a97895a0ebc964f08a775ad7a /tests/libtest | |
parent | e29f62f0a7034a2a42fb43b913e6576e63a03fe5 (diff) |
For tracing purposes log a fake call to getaddrinfo
when allocating/building the fake Curl_addrinfo.
Diffstat (limited to 'tests/libtest')
-rw-r--r-- | tests/libtest/lib558.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/libtest/lib558.c b/tests/libtest/lib558.c index 9dabbb718..41f8c8678 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; } |