From: Amos Jeffries Date: Sat, 1 Aug 2009 08:24:00 +0000 (+1200) Subject: Bug 2725: pconn failure if domain or client_address are unset X-Git-Tag: SQUID_3_0_STABLE18~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fef295c6b2b55e41d4c471910210a4492870b4d0;p=thirdparty%2Fsquid.git Bug 2725: pconn failure if domain or client_address are unset --- diff --git a/src/pconn.cc b/src/pconn.cc index 7243c4f495..9a773f3c1f 100644 --- a/src/pconn.cc +++ b/src/pconn.cc @@ -188,7 +188,7 @@ PconnPool::key(const char *host, u_short port, const char *domain, struct IN_ADD else snprintf(buf, SQUIDHOSTNAMELEN * 3 + 10, "%s:%d", host, (int) port); - debugs(48,6,"PconnPool::key(" << host << "," << port << "," << domain << "," << inet_ntoa(*client_address) << "is {" << buf << "}" ); + debugs(48,6,"PconnPool::key(" << (host?host:"(no host!)") << "," << port << "," << (domain?domain:"(no domain)") << "," << (client_address?inet_ntoa(*client_address):"(no client IP)") << "is {" << buf << "}" ); return buf; }