Closed Bug 734484 Opened 10 years ago Closed 9 years ago

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

Categories

(NSS :: Libraries, defect)

3.12.3.1
x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

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

Details

Attachments

(1 file)

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: nobody → emaldona
Attachment #604511 - Attachment is patch: true
Attachment #604511 - Flags: review?(rrelyea)
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+
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
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.14
You need to log in before you can comment on or make changes to this bug.