summaryrefslogtreecommitdiff
path: root/mozilla-1579023.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2019-09-10 10:42:29 +0200
committerMartin Stransky <stransky@redhat.com>2019-09-10 10:42:29 +0200
commit8eab606fb29c158f4d544b844ebc41603893919c (patch)
treed3b527fe331fc0ad5ab431c9994f753c8cd1aa15 /mozilla-1579023.patch
parentDisabled ppc64le on Fedora 29 (rhbz#1749729) (diff)
downloadlibrewolf-fedora-ff-8eab606fb29c158f4d544b844ebc41603893919c.tar.gz
librewolf-fedora-ff-8eab606fb29c158f4d544b844ebc41603893919c.tar.bz2
librewolf-fedora-ff-8eab606fb29c158f4d544b844ebc41603893919c.zip
Added fix for mozbz#1579023
Diffstat (limited to 'mozilla-1579023.patch')
-rw-r--r--mozilla-1579023.patch23
1 files changed, 23 insertions, 0 deletions
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
+
bgstack15