]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2725: pconn failure if domain or client_address are unset
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 1 Aug 2009 08:24:00 +0000 (20:24 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 1 Aug 2009 08:24:00 +0000 (20:24 +1200)
src/pconn.cc

index 7243c4f495adcfb6a0202e28991cd2c4bab83839..9a773f3c1f23554ff4050ef697506287947ce0b2 100644 (file)
@@ -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;
 }