Closed Bug 288726 Opened 20 years ago Closed 20 years ago

C_Finalize status not checked in SECMOD_CancelWait

Categories

(NSS :: Libraries, defect, P2)

3.9.5
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: julien.pierre, Assigned: julien.pierre)

References

Details

Attachments

(1 file)

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; }
Checking in pk11util.c; /cvsroot/mozilla/security/nss/lib/pk11wrap/pk11util.c,v <-- pk11util.c new revision: 1.49; previous revision: 1.48 done
Status: NEW → RESOLVED
Closed: 20 years ago
Priority: -- → P2
Resolution: --- → FIXED
Target Milestone: --- → 3.10
Summary: Error in SECMOD_CancelWait → C_Finalize status not checked in SECMOD_CancelWait
*** Bug 289047 has been marked as a duplicate of this bug. ***
*** 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.

Attachment

General

Creator:
Created:
Updated:
Size: