]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix build on GCC-4 after rev.15177
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 7 Jun 2017 18:04:08 +0000 (06:04 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 7 Jun 2017 18:04:08 +0000 (06:04 +1200)
src/security/Session.cc

index 57dbdd00644fc470e3f500762529fb33d771c7c7..9d33d2d7a029327fcc1356f360c9de3c25e58f41 100644 (file)
@@ -326,7 +326,7 @@ remove_session_cb(SSL_CTX *, SSL_SESSION *sessionID)
 
     debugs(83, 5, "Request to remove corrupted or not valid SSL_SESSION");
     int pos;
-    if (const auto slot = SessionCache->openForReading(reinterpret_cast<const cache_key*>(sessionID), pos)) {
+    if (SessionCache->openForReading(reinterpret_cast<const cache_key*>(sessionID), pos)) {
         SessionCache->closeForReading(pos);
         // TODO:
         // What if we are not able to remove the session?