]> 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>
Wed, 29 Jul 2009 09:25:10 +0000 (21:25 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 29 Jul 2009 09:25:10 +0000 (21:25 +1200)
src/pconn.cc

index 57996b6171a976df97d09c21b814145a3f25732b..fd2d97b5a28796089e0f03caed7398db04ec3423 100644 (file)
@@ -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;
 }