From: wessels <> Date: Thu, 15 Aug 1996 03:58:03 +0000 (+0000) Subject: fix potential NULL pointer references X-Git-Tag: SQUID_3_0_PRE1~5968 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a3b9c198b1f1d10a16f15b19b5f9f35635abcb5;p=thirdparty%2Fsquid.git fix potential NULL pointer references --- diff --git a/src/stat.cc b/src/stat.cc index 284554190d..43b1dc5bad 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -1,5 +1,5 @@ /* - * $Id: stat.cc,v 1.52 1996/08/12 23:22:37 wessels Exp $ + * $Id: stat.cc,v 1.53 1996/08/14 21:58:03 wessels Exp $ * * DEBUG: section 18 Cache Manager Statistics * AUTHOR: Harvest Derived @@ -903,7 +903,7 @@ void log_append(obj, url, caddr, size, action, method, http_code, msec, ident, h ident = dash; if (hierData) { hier_code = hierData->code; - hier_host = hierData->host; + hier_host = hierData->host ? hierData->host : dash; hier_timeout = hierData->timeout; } if (obj->logfile_status == LOG_ENABLE) {