]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
put - for NULL hierarchy host
authorwessels <>
Sat, 19 Jul 1997 12:12:49 +0000 (12:12 +0000)
committerwessels <>
Sat, 19 Jul 1997 12:12:49 +0000 (12:12 +0000)
src/access_log.cc

index 92900f4d8de68cdf67078bd6715d4e01fce4a816..41ab5b732d9fa5a6ce9a18ddaa72936b8ccc1ae0 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: access_log.cc,v 1.2 1997/06/26 22:35:35 wessels Exp $
+ * $Id: access_log.cc,v 1.3 1997/07/19 06:12:49 wessels Exp $
  *
  * DEBUG: section 46    Access Log
  * AUTHOR: Duane Wessels
@@ -174,6 +174,8 @@ accessLogLog(AccessLogEntry * al)
        al->private.method_str = IcpOpcodeStr[al->icp.opcode];
     else
        al->private.method_str = RequestMethodStr[al->http.method];
+    if (al->hier.host[0] == '\0')
+       xstrncpy(al->hier.host, dash_str, SQUIDHOSTNAMELEN);
     if (Config.commonLogFormat)
        l = accessLogCommon(al);
     else