diff options
Diffstat (limited to 'lib/softoken/sftkike.c')
-rw-r--r-- | lib/softoken/sftkike.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/softoken/sftkike.c b/lib/softoken/sftkike.c index 049675ff8..2183add69 100644 --- a/lib/softoken/sftkike.c +++ b/lib/softoken/sftkike.c @@ -465,7 +465,7 @@ sftk_ike_prf(CK_SESSION_HANDLE hSession, const SFTKAttribute *inKey, SFTKObject *newKeyObj = NULL; unsigned char outKeyData[HASH_LENGTH_MAX]; unsigned char *newInKey = NULL; - unsigned int newInKeySize; + unsigned int newInKeySize = 0; unsigned int macSize; CK_RV crv = CKR_OK; prfContext context; @@ -545,7 +545,7 @@ sftk_ike_prf(CK_SESSION_HANDLE hSession, const SFTKAttribute *inKey, crv = sftk_forceAttribute(outKey, CKA_VALUE, outKeyData, macSize); fail: if (newInKey) { - PORT_Free(newInKey); + PORT_ZFree(newInKey, newInKeySize); } if (newKeyValue) { sftk_FreeAttribute(newKeyValue); |