From ff1e79fdd2bdd4411b066eb5a241f0a512c6c2fb Mon Sep 17 00:00:00 2001 From: robertc <> Date: Sun, 15 Sep 2002 21:06:01 +0000 Subject: [PATCH] fix USERAGENT and REFERER logs from bitrot --- src/client_side_request.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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)) { -- 2.47.2