summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2022-04-20 12:44:15 -0500
committerMatt A. Tobin <email@mattatobin.com>2022-04-20 12:44:32 -0500
commit128be549a394552d7ffb502ac391600e2a6add7c (patch)
treeeb1e50babf7f9713aaa6a2c2d6441b4873bf0ce0
parent7d68843eb91243b552ab0202e784ce307eda7dc1 (diff)
downloadaura-central-128be549a394552d7ffb502ac391600e2a6add7c.tar.gz
[System:Security] Remove explicit session cache cleanup routine from ShutdownNSS
This is no longer needed because the call to SSL_ConfigServerSessionIDCache on startup was already removed (see 1425f020c4), meaning LocksInitializedEarly does not become true and only causes an assertion on debug builds. On the other hand, SSL_ClearSessionCache is already called on XPCOM shutdown and calling it again here is redundant.
-rw-r--r--system/security/manager/ssl/nsNSSComponent.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/system/security/manager/ssl/nsNSSComponent.cpp b/system/security/manager/ssl/nsNSSComponent.cpp
index f8e0af26d..6f7a14ca5 100644
--- a/system/security/manager/ssl/nsNSSComponent.cpp
+++ b/system/security/manager/ssl/nsNSSComponent.cpp
@@ -1936,10 +1936,6 @@ nsNSSComponent::ShutdownNSS()
#ifndef MOZ_NO_SMART_CARDS
ShutdownSmartCardThreads();
#endif
- SSL_ClearSessionCache();
- // TLSServerSocket may be run with the session cache enabled. This ensures
- // those resources are cleaned up.
- Unused << SSL_ShutdownServerSessionIDCache();
MOZ_LOG(gPIPNSSLog, LogLevel::Debug, ("evaporating psm resources"));
if (NS_FAILED(nsNSSShutDownList::evaporateAllNSSResources())) {