summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrelyea%netscape.com <devnull@localhost>2003-11-07 16:34:11 +0000
committerrelyea%netscape.com <devnull@localhost>2003-11-07 16:34:11 +0000
commit2f6ed4517705fe04cee7a1bb2b78767f1c9a0c0e (patch)
tree13ecdb19c765b46778d6f2db435c5c9d39ca5185
parent02e28566f1c1c3b9f89dce53a0efffe5c929e4ee (diff)
downloadnss-hg-2f6ed4517705fe04cee7a1bb2b78767f1c9a0c0e.tar.gz
Repair error case for DH code in previous patch.
-rw-r--r--security/nss/lib/softoken/pkcs11c.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/security/nss/lib/softoken/pkcs11c.c b/security/nss/lib/softoken/pkcs11c.c
index 81a6e73be..31d925416 100644
--- a/security/nss/lib/softoken/pkcs11c.c
+++ b/security/nss/lib/softoken/pkcs11c.c
@@ -3304,17 +3304,15 @@ dsagn_done:
bitSize = pk11_GetLengthInBits(dhParam.prime.data,dhParam.prime.len);
if ((bitSize < DH_MIN_P_BITS) || (bitSize > DH_MAX_P_BITS)) {
crv = CKR_TEMPLATE_INCOMPLETE;
- PORT_Free(pqgParam.prime.data);
- PORT_Free(pqgParam.subPrime.data);
- PORT_Free(pqgParam.base.data);
+ PORT_Free(dhParam.prime.data);
+ PORT_Free(dhParam.base.data);
break;
}
bitSize = pk11_GetLengthInBits(dhParam.base.data,dhParam.base.len);
if ((bitSize < 1) || (bitSize > DH_MAX_P_BITS)) {
crv = CKR_TEMPLATE_INCOMPLETE;
- PORT_Free(pqgParam.prime.data);
- PORT_Free(pqgParam.subPrime.data);
- PORT_Free(pqgParam.base.data);
+ PORT_Free(dhParam.prime.data);
+ PORT_Free(dhParam.base.data);
break;
}