Closed
Bug 288726
Opened 20 years ago
Closed 20 years ago
C_Finalize status not checked in SECMOD_CancelWait
Categories
(NSS :: Libraries, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
3.10
People
(Reporter: julien.pierre, Assigned: julien.pierre)
References
Details
Attachments
(1 file)
1.31 KB,
patch
|
Details | Diff | Splinter Review |
I found the following problem in pk11util.c by looking at compiler warnings
(gcc) . The bug is that crv is being assigned CKR_OK, instead of being tested.
There is no doubt about the fix, so I will check it in.
crv = PK11_GETTAB(mod)->C_Finalize(NULL);
/* ok, we slammed the module down, now we need to reinit it in case
* we intend to use it again */
if (crv = CKR_OK) {
secmod_ModuleInit(mod);
} else {
/* Finalized failed for some reason, notify the application
* so maybe it has a prayer of recovering... */
PORT_SetError(PK11_MapError(crv));
rv = SECFailure;
}
Assignee | ||
Comment 1•20 years ago
|
||
Checking in pk11util.c;
/cvsroot/mozilla/security/nss/lib/pk11wrap/pk11util.c,v <-- pk11util.c
new revision: 1.49; previous revision: 1.48
done
Assignee | ||
Updated•20 years ago
|
Status: NEW → RESOLVED
Closed: 20 years ago
Priority: -- → P2
Resolution: --- → FIXED
Target Milestone: --- → 3.10
Assignee | ||
Updated•20 years ago
|
Summary: Error in SECMOD_CancelWait → C_Finalize status not checked in SECMOD_CancelWait
Comment 2•20 years ago
|
||
*** Bug 289047 has been marked as a duplicate of this bug. ***
Comment 3•18 years ago
|
||
*** Bug 355840 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•