]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Boost redirector cache.log message to indicate <NULL> also received when
authoramosjeffries <>
Fri, 28 Sep 2007 05:58:06 +0000 (05:58 +0000)
committeramosjeffries <>
Fri, 28 Sep 2007 05:58:06 +0000 (05:58 +0000)
redirector returns an empty URL as destination.
Was just when NULL pointer received.

src/redirect.cc

index 258fb482b3a212c828980614766357e4412fb4b8..ca37bb45aa8dee3ce1a590c76aa741b461555ad8 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: redirect.cc,v 1.120 2007/05/29 13:31:40 amosjeffries Exp $
+ * $Id: redirect.cc,v 1.121 2007/09/27 23:58:06 amosjeffries Exp $
  *
  * DEBUG: section 61    Redirector
  * AUTHOR: Duane Wessels
@@ -70,7 +70,7 @@ redirectHandleReply(void *data, char *reply)
     redirectStateData *r = static_cast<redirectStateData *>(data);
     char *t;
     void *cbdata;
-    debugs(61, 5, "redirectHandleRead: {" << (reply ? reply : "<NULL>") << "}");
+    debugs(61, 5, "redirectHandleRead: {" << (reply && *reply != '\0' ? reply : "<NULL>") << "}");
 
     if (reply) {
         if ((t = strchr(reply, ' ')))