]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3696: crash when client delay pools are activated
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 28 Aug 2015 13:20:53 +0000 (06:20 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 28 Aug 2015 13:20:53 +0000 (06:20 -0700)
src/client_side.cc

index 65d0092cba7137019e6610eb13f12314c45e66aa..52102fbc8bbbb5126180d83992c0ff31b98a2c51 100644 (file)
@@ -3484,7 +3484,8 @@ ConnStateData::start()
 
             /* pools require explicit 'allow' to assign a client into them */
             if (pools[pool].access) {
-                ch.accessList = pools[pool].access;
+                cbdataReferenceDone(ch.accessList);
+                ch.accessList = cbdataReference(pools[pool].access);
                 allow_t answer = ch.fastCheck();
                 if (answer == ACCESS_ALLOWED) {