From: wessels <> Date: Fri, 26 Jul 1996 22:58:33 +0000 (+0000) Subject: put hierarchy stuff into request structure X-Git-Tag: SQUID_3_0_PRE1~5991 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e94bee47ecd55e84dd8c6b82151de65987991b50;p=thirdparty%2Fsquid.git put hierarchy stuff into request structure --- diff --git a/src/neighbors.cc b/src/neighbors.cc index f4428c25ae..ee30971176 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -1,5 +1,5 @@ /* - * $Id: neighbors.cc,v 1.36 1996/07/25 07:10:38 wessels Exp $ + * $Id: neighbors.cc,v 1.37 1996/07/26 16:58:46 wessels Exp $ * * DEBUG: section 15 Neighbor Routines * AUTHOR: Harvest Derived @@ -178,9 +178,9 @@ void hierarchy_log_append(entry, code, timeout, cache_host) if (code > HIER_MAX) code = HIER_MAX; if (mem) - mem->hierarchy_code = code; + mem->request->hierarchy_code = code; if (mem && cache_host) - mem->hierarchy_host = xstrdup(cache_host); + mem->request->hierarchy_host = xstrdup(cache_host); if (Config.commonLogFormat) { if (squid_curtime != last_time) { diff --git a/src/url.cc b/src/url.cc index 2c6d740aca..283e132fa6 100644 --- a/src/url.cc +++ b/src/url.cc @@ -1,6 +1,6 @@ /* - * $Id: url.cc,v 1.25 1996/07/19 17:41:31 wessels Exp $ + * $Id: url.cc,v 1.26 1996/07/26 16:58:33 wessels Exp $ * * DEBUG: section 23 URL Parsing * AUTHOR: Duane Wessels @@ -278,8 +278,10 @@ void requestUnlink(request) if (request == NULL) return; request->link_count--; - if (request->link_count == 0) - put_free_request_t(request); + if (request->link_count) + return; + safe_free(request->hierarchy_host); + put_free_request_t(request); } int matchDomainName(domain, host)