Closed Bug 507377 Opened 15 years ago Closed 14 years ago

useless null check of params in nsc_parameter_gen

Categories

(NSS :: Libraries, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: timeless, Assigned: timeless)

References

()

Details

(Keywords: coverity, Whiteboard: FIPS)

Attachments

(1 file)

2838 nsc_parameter_gen(CK_KEY_TYPE key_type, SFTKObject *key)
2871         rv = PQG_ParamGen(j, &params, &vfy);
2873         rv = PQG_ParamGenSeedLen(j,seedBits/8, &params, &vfy);
2876     if (rv != SECSuccess) {
2880         return sftk_MapCryptError(PORT_GetError());

2882     crv = sftk_AddAttributeType(key,CKA_PRIME,
2883                                  params->prime.data, params->prime.len);
2902     if (params) {
Severity: enhancement → trivial
Priority: -- → P5
Attached patch patchSplinter Review
Assignee: nobody → timeless
Status: NEW → ASSIGNED
Attachment #391589 - Flags: review?(nelson)
Comment on attachment 391589 [details] [diff] [review]
patch

r+
No objection to removal of redundant check, because PQG_DestroyParams won't crash given NULL.
Attachment #391589 - Flags: review?(nelson) → review+
This patch affects FIPS validated code, so must wait.
Whiteboard: FIPS
softoken/pkcs11c.c; new revision: 1.111.8.1; previous revision: 1.111
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.13
Version: unspecified → trunk
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: