From: robertc <> Date: Sun, 15 Sep 2002 21:06:01 +0000 (+0000) Subject: fix USERAGENT and REFERER logs from bitrot X-Git-Tag: SQUID_3_0_PRE1~752 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff1e79fdd2bdd4411b066eb5a241f0a512c6c2fb;p=thirdparty%2Fsquid.git fix USERAGENT and REFERER logs from bitrot --- diff --git a/src/client_side_request.cc b/src/client_side_request.cc index ef5e613261..129ba0c645 100644 --- a/src/client_side_request.cc +++ b/src/client_side_request.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side_request.cc,v 1.2 2002/09/15 06:40:57 robertc Exp $ + * $Id: client_side_request.cc,v 1.3 2002/09/15 15:06:01 robertc Exp $ * * DEBUG: section 85 Client-side Request Routines * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c) @@ -458,13 +458,11 @@ clientInterpretRequestHeaders(clientHttpRequest * http) } #if USE_USERAGENT_LOG if ((str = httpHeaderGetStr(req_hdr, HDR_USER_AGENT))) - logUserAgent(fqdnFromAddr(http->conn ? http->conn->log_addr. - sin_addr : &noaddr), str); + logUserAgent(fqdnFromAddr(http->conn ? http->conn->log_addr : no_addr), str); #endif #if USE_REFERER_LOG if ((str = httpHeaderGetStr(req_hdr, HDR_REFERER))) - logReferer(fqdnFromAddr(http->conn ? http->conn->log_addr. - sin_addr : &noaddr), str, http->log_uri); + logReferer(fqdnFromAddr(http->conn ? http->conn->log_addr : no_addr), str, http->log_uri); #endif #if FORW_VIA_DB if (httpHeaderHas(req_hdr, HDR_X_FORWARDED_FOR)) {