From: Amos Jeffries Date: Wed, 29 Jul 2009 09:25:10 +0000 (+1200) Subject: Bug 2725: pconn failure if domain or client_address are unset X-Git-Tag: SQUID_3_1_0_13~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e0b8f1e414bf3592db7d11f8c716ed317ce8b054;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 57996b6171..fd2d97b5a2 100644 --- a/src/pconn.cc +++ b/src/pconn.cc @@ -191,7 +191,7 @@ PconnPool::key(const char *host, u_short port, const char *domain, IpAddress &cl else snprintf(buf, SQUIDHOSTNAMELEN * 3 + 10, "%s:%d", host, (int) port); - debugs(48,6,"PconnPool::key(" << host << "," << port << "," << domain << "," << client_address << "is {" << buf << "}" ); + debugs(48,6,"PconnPool::key(" << (host?host:"(no host!)") << "," << port << "," << (domain?domain:"(no domain)") << "," << client_address << "is {" << buf << "}" ); return buf; }