From: amosjeffries <> Date: Fri, 28 Sep 2007 05:58:06 +0000 (+0000) Subject: Boost redirector cache.log message to indicate also received when X-Git-Tag: SQUID_3_0_RC1~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=58523b8055ca2a1b81cbe4dd63c3d1e72e9af2e4;p=thirdparty%2Fsquid.git Boost redirector cache.log message to indicate also received when redirector returns an empty URL as destination. Was just when NULL pointer received. --- diff --git a/src/redirect.cc b/src/redirect.cc index 258fb482b3..ca37bb45aa 100644 --- a/src/redirect.cc +++ b/src/redirect.cc @@ -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(data); char *t; void *cbdata; - debugs(61, 5, "redirectHandleRead: {" << (reply ? reply : "") << "}"); + debugs(61, 5, "redirectHandleRead: {" << (reply && *reply != '\0' ? reply : "") << "}"); if (reply) { if ((t = strchr(reply, ' ')))