]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix myportname ACL on ICAP/eCAP transactions
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 11 Sep 2013 01:03:45 +0000 (19:03 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 11 Sep 2013 01:03:45 +0000 (19:03 -0600)
The port name from http_port/https_port was not being propigated to
adapted reqeusts after ICAP/eCAP. Which makes the myportname ACL and
logging of portname not work on adapted requests.

 This is an iCelero Project

src/HttpRequest.cc

index 841dde68ce02b8f4a3b26a52ed776f2fb474a976..5e817ed14c263c7cab23459084e7f2ed9c64bdb0 100644 (file)
@@ -223,7 +223,6 @@ HttpRequest::clone() const
     copy->vary_headers = vary_headers ? xstrdup(vary_headers) : NULL;
     // XXX: what to do with copy->peer_domain?
 
-    copy->myportname = myportname;
     copy->tag = tag;
     copy->extacl_log = extacl_log;
     copy->extacl_message = extacl_message;
@@ -268,6 +267,8 @@ HttpRequest::inheritProperties(const HttpMsg *aMsg)
     extacl_passwd = aReq->extacl_passwd;
 #endif
 
+    myportname = aReq->myportname;
+
     // main property is which connection the request was received on (if any)
     clientConnectionManager = aReq->clientConnectionManager;