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

index 9adfe9ca264a03b2ce734261d5b41ea1dc0ed501..0cb07ef3970ad65016b8e6b5889d1507c54f38b2 100644 (file)
@@ -3378,7 +3378,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) {