From 8eab606fb29c158f4d544b844ebc41603893919c Mon Sep 17 00:00:00 2001 From: Martin Stransky Date: Tue, 10 Sep 2019 10:42:29 +0200 Subject: Added fix for mozbz#1579023 --- mozilla-1579023.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 mozilla-1579023.patch (limited to 'mozilla-1579023.patch') diff --git a/mozilla-1579023.patch b/mozilla-1579023.patch new file mode 100644 index 0000000..32881b9 --- /dev/null +++ b/mozilla-1579023.patch @@ -0,0 +1,23 @@ +diff --git a/security/manager/ssl/nsNSSComponent.cpp b/security/manager/ssl/nsNSSComponent.cpp +--- a/security/manager/ssl/nsNSSComponent.cpp ++++ b/security/manager/ssl/nsNSSComponent.cpp +@@ -683,10 +683,17 @@ + AutoSECMODListReadLock secmodLock; + SECMODModuleList* list = SECMOD_GetDefaultModuleList(); + while (list) { +- if (SECMOD_HasRemovableSlots(list->module)) { ++ SECMODModule* module = list->module; ++ if (SECMOD_HasRemovableSlots(module)) { + *result = true; + return NS_OK; + } ++ for (int i = 0; i < module->slotCount; i++) { ++ if (!PK11_IsFriendly(module->slots[i])) { ++ *result = true; ++ return NS_OK; ++ } ++ } + list = list->next; + } + #endif + -- cgit