Closed Bug 434860 Opened 16 years ago Closed 16 years ago

Coverity 1150 - dead code in ocsp_CreateCertID

Categories

(NSS :: Libraries, defect, P4)

defect

Tracking

(Not tracked)

RESOLVED FIXED
3.12.1

People

(Reporter: nelson, Assigned: julien.pierre)

Details

Attachments

(1 file)

Found by Coverity on its last Firefox 3 test run, 2007-May-14 CID 1150 In function ocsp_CreateCertID, variable tempItem is initialized to NULL 1593 SECItem *tempItem = NULL; and then is not touched again until label loser, where it is checked for NULL. 1665 if (tempItem != NULL) { 1666 SECITEM_FreeItem(tempItem, PR_TRUE); 1667 } That condition can never be true. It's dead code. All the lines shown above should be removed.
Assignee: nobody → julien.pierre.boogz
Priority: -- → P4
Target Milestone: --- → 3.12.1
Attached patch Remove dead codeSplinter Review
Attachment #321832 - Flags: review?(nelson)
Comment on attachment 321832 [details] [diff] [review] Remove dead code r+
Attachment #321832 - Flags: review?(nelson) → review+
Thanks for the review, Nelson. Checking in ocsp.c; /cvsroot/mozilla/security/nss/lib/certhigh/ocsp.c,v <-- ocsp.c new revision: 1.51; previous revision: 1.50 done
Status: NEW → RESOLVED
Closed: 16 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: