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

index 98fa58bc5049fc1414153abc124c30f0f666c54f..a6242f7e51472ce6f59a3e22d4cdf78a93a51148 100644 (file)
@@ -3447,7 +3447,8 @@ httpAccept(const CommAcceptCbParams &params)
 
             /* 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) {