]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix myportname ACL on ICAP/eCAP transactions
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 8 Sep 2013 04:27:31 +0000 (22:27 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 8 Sep 2013 04:27:31 +0000 (22:27 -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 9c1315d6ba3722e898555e5537df0bb1860d7138..dc18b3351517c0a4db0d3b70ca570bde2a17d1a1 100644 (file)
@@ -228,7 +228,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;
@@ -273,6 +272,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;