Skip module load if already initialized or no db's are being added

RESOLVED FIXED in 3.14

Status

RESOLVED FIXED
7 years ago
6 years ago

People

(Reporter: elio.maldonado.batiz, Assigned: elio.maldonado.batiz)

Tracking

3.12.3.1
3.14
x86_64
Linux

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

7 years ago
Created attachment 604511 [details] [diff] [review]
skip loading a module if  already initialized or no db's are being added

The problem was originally reported as 'Unable to contact LDAP Server during winsync'
The client in question, part of the Directory Server suite, uses the PEM module which doesn't add any databases. PEM module just loads certs and keys an ephemeral in memory database. Other cleinst of libpem could be affected.  

nss_Init should skip loading a module if either it has been initialized or the module doesn't add any database, e.g. noCertDB and noModDB are set. Attaching Bob Relyea's fix applied on RHEL and Fedora.
(Assignee)

Updated

7 years ago
Assignee: nobody → emaldona

Updated

7 years ago
Attachment #604511 - Attachment is patch: true
(Assignee)

Updated

6 years ago
Attachment #604511 - Flags: review?(rrelyea)

Comment 1

6 years ago
Comment on attachment 604511 [details] [diff] [review]
skip loading a module if  already initialized or no db's are being added

r+ rrelyea
Attachment #604511 - Flags: review?(rrelyea) → review+
(Assignee)

Comment 2

6 years ago
Thank you Bob. It turns that the patch for Bug 734492 that I had just committed,
https://bug734492.bugzilla.mozilla.org/attachment.cgi?id=604520
already contained this one in it's first section.
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.14
You need to log in before you can comment on or make changes to this bug.