Closed Bug 359331 Opened 18 years ago Closed 18 years ago

modutil -changepw strict shutdown failure

Categories

(NSS :: Tools, defect, P2)

3.11.3
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nelson, Assigned: alvolkov.bgs)

Details

Attachments

(1 file)

Let $FIPS be the name of a directory containing an NSS DB file trio 
configured to run in FIPS mode.

When environment variable NSS_STRICT_SHUTDOWN is set to 1,  the command 
   modutil.exe -dbdir $FIPS -changepw "NSS FIPS 140-2 Certificate DB"
crashes in NSS_Shutdown due to a reference leak.

This bug was formerly recorded as a comment in bug 354423.
I filed this as a "tools" bug, assuming that the bug is in the modutil program.
If the bug is found to be in the NSS libraries, please change this to a 
libraries bug.
Priority: -- → P2
Attachment #245249 - Flags: review?(nelson)
Comment on attachment 245249 [details] [diff] [review]
destroy slot before calling NSS_Shutdown

r=nelson
Alexei, 
Please combine this patch with the patch for bug 354423, which also patches this same function in cmd/modutil/pk11.c, and do one checkin that fixes both bugs.  Thanks.
Attachment #245249 - Flags: review?(nelson) → review+
/cvsroot/mozilla/security/nss/cmd/modutil/pk11.c,v  <--  pk11.c
new revision: 1.25; previous revision: 1.24
/cvsroot/mozilla/security/nss/cmd/tests/remtest.c,v  <--  remtest.c
new revision: 1.4; previous revision: 1.3
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: