]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Do not dereference nil Ssl::CertValidationHelper::GetInstance().
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 14 Sep 2012 20:37:58 +0000 (14:37 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 14 Sep 2012 20:37:58 +0000 (14:37 -0600)
src/main.cc

index 1ca8b10025889259a270fadfaddf40ff8b007dd2..2b6b8c83f7a83162b2d9095282f69e7b61f3f1d5 100644 (file)
@@ -758,7 +758,8 @@ mainReconfigureStart(void)
     Ssl::Helper::GetInstance()->Shutdown();
 #endif
 #if USE_SSL
-    Ssl::CertValidationHelper::GetInstance()->Shutdown();
+    if (Ssl::CertValidationHelper::GetInstance())
+        Ssl::CertValidationHelper::GetInstance()->Shutdown();
     Ssl::TheGlobalContextStorage.reconfigureStart();
 #endif
     redirectShutdown();
@@ -1858,7 +1859,8 @@ SquidShutdown()
     Ssl::Helper::GetInstance()->Shutdown();
 #endif
 #if USE_SSL
-    Ssl::CertValidationHelper::GetInstance()->Shutdown();
+    if (Ssl::CertValidationHelper::GetInstance())
+        Ssl::CertValidationHelper::GetInstance()->Shutdown();
 #endif
     redirectShutdown();
     externalAclShutdown();