]> 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:22:38 +0000 (06:22 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 28 Aug 2015 13:22:38 +0000 (06:22 -0700)
src/client_side.cc

index 01f668305dee75f80b515c361873bbaa829a64e6..8dcefb163f9464265fba5095fb3ecdf673a133ad 100644 (file)
@@ -3624,7 +3624,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) {