From: wessels <> Date: Mon, 22 Jul 1996 23:24:12 +0000 (+0000) Subject: logic X-Git-Tag: SQUID_3_0_PRE1~6009 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=00859e304226ebf476449fbf9dd7b396839c2519;p=thirdparty%2Fsquid.git logic --- diff --git a/src/stat.cc b/src/stat.cc index 2f45d15cea..041dc45333 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -1,5 +1,5 @@ /* - * $Id: stat.cc,v 1.45 1996/07/22 17:20:59 wessels Exp $ + * $Id: stat.cc,v 1.46 1996/07/22 17:24:12 wessels Exp $ * * DEBUG: section 18 Cache Manager Statistics * AUTHOR: Harvest Derived @@ -907,8 +907,10 @@ void log_append(obj, url, caddr, size, action, method, http_code, msec, ident, h LOCAL_ARRAY(char, tmp, 6000); /* MAX_URL is 4096 */ int x; static char *dash = "-"; - char *client = fqdncache_gethostbyaddr(caddr, 0); + char *client = NULL; + if (opt_log_fqdn) + client = fqdncache_gethostbyaddr(caddr, 0); if (client == NULL) client = inet_ntoa(caddr);