Commit 4563164a authored by Daiki Ueno's avatar Daiki Ueno

Bug 1365193, crmftest: fix memleaks spotted by coverity, r=kaie

parent bd792733
......@@ -1261,11 +1261,13 @@ DoChallengeResponse(SECKEYPrivateKey *privKey,
return 908;
keyID = PK11_MakeIDFromPubKey(publicValue);
SECITEM_FreeItem(publicValue, PR_TRUE);
if (keyID == NULL) {
printf("Could not make the keyID from the public value\n");
return 909;
foundPrivKey = PK11_FindKeyByKeyID(privKey->pkcs11Slot, keyID, &pwdata);
if (foundPrivKey == NULL) {
printf("Could not find the private key corresponding to the public"
" value.\n");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment