]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Cleanup: remove needless LockingPointer::resetWithoutLocking(nullptr)
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 19 Aug 2016 06:55:38 +0000 (18:55 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 19 Aug 2016 06:55:38 +0000 (18:55 +1200)
src/comm.cc
src/fde.h
src/security/cert_generators/file/security_file_certgen.cc

index e6062247406d24249d139b99a8bd90cc78a0960f..0edaea2ff155b8afd6923a4b45a35a1dd6a8bf9e 100644 (file)
@@ -838,7 +838,7 @@ void
 comm_close_complete(const FdeCbParams &params)
 {
     fde *F = &fd_table[params.fd];
-    F->ssl.resetWithoutLocking(nullptr);
+    F->ssl.reset();
 
 #if USE_OPENSSL
     if (F->dynamicSslContext) {
index 4978b5e377cf6f0b25d256224bb3d9752a41ffba..938e3b79b951371ee274ef2b2baef81d49798130 100644 (file)
--- a/src/fde.h
+++ b/src/fde.h
@@ -167,7 +167,7 @@ public:
         halfClosedReader = NULL;
         read_method = NULL;
         write_method = NULL;
-        ssl.resetWithoutLocking(nullptr);
+        ssl.reset();
         dynamicSslContext = NULL;
 #if _SQUID_WINDOWS_
         win32.handle = (long)NULL;
index 63e96c889deda803e6385410f5e1b1a36f317f97..2b4bbd6452b4cb55ccd74c4dfe7096f72e6bef80 100644 (file)
@@ -204,8 +204,8 @@ static bool processNewRequest(Ssl::CrtdMessage & request_message, std::string co
         if (!Ssl::certificateMatchesProperties(cert.get(), certProperties)) {
             // The certificate changed (renewed or other reason).
             // Generete a new one with the updated fields.
-            cert.resetWithoutLocking(nullptr);
-            pkey.resetWithoutLocking(nullptr);
+            cert.reset();
+            pkey.reset();
             db.purgeCert(cert_subject);
         }
     }