Closed
Bug 233320
Opened 21 years ago
Closed 20 years ago
pk11_OpenKeyDB returns SECFailure.
Categories
(NSS :: Libraries, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
3.10
People
(Reporter: wtc, Assigned: rrelyea)
Details
Attachments
(1 file)
841 bytes,
patch
|
rrelyea
:
review+
|
Details | Diff | Splinter Review |
In lib/softoken/dbinit.c, the return type of pk11_OpenKeyDB is CK_RV, but it returns SECFailure on one error path.
Reporter | ||
Comment 1•21 years ago
|
||
Is CKR_KEYDB_FAILED the right error code? This patch contains an unrelated change. In pk11_DBShutdown, it is not necessary to set the function arguments certHandle and keyHandle to NULL because their values will be gone after we return from this function. It's okay if you don't want to take this change.
Reporter | ||
Updated•21 years ago
|
Attachment #140774 -
Flags: review?(rrelyea0264)
Assignee | ||
Comment 2•20 years ago
|
||
Comment on attachment 140774 [details] [diff] [review] Proposed patch This review request is very old. I should have gotten to this sooner. That patch is fine as is. A better return code would be CKR_HOST_MEMORY since the problem is a memory allocation problem. bob
Attachment #140774 -
Flags: review?(rrelyea0264) → review+
Reporter | ||
Comment 3•20 years ago
|
||
I checked in the patch on the trunk for NSS 3.10. In the checkin I use the CKR_HOST_MEMORY return code instead as Bob suggested. Checking in dbinit.c; /cvsroot/mozilla/security/nss/lib/softoken/dbinit.c,v <-- dbinit.c new revision: 1.23; previous revision: 1.22 done
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.10
Comment 4•19 years ago
|
||
Setting priorities on unprioritized bugs resolved fixed for NSS 3.10.
Priority: -- → P2
You need to log in
before you can comment on or make changes to this bug.
Description
•