Skip to content

Commit

Permalink
Bug 1256266 - return early in pkcs11c.c, r=ttaubert
Browse files Browse the repository at this point in the history
  • Loading branch information
franziskuskiefer committed Mar 21, 2016
1 parent 543bb09 commit 3e428ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/softoken/pkcs11c.c
Expand Up @@ -5079,7 +5079,6 @@ CK_RV NSC_GenerateKeyPair (CK_SESSION_HANDLE hSession,
(PRUint32)crv);
sftk_LogAuditMessage(NSS_AUDIT_ERROR, NSS_AUDIT_SELF_TEST, msg);
}
return crv;
}
}

Expand All @@ -5088,6 +5087,7 @@ CK_RV NSC_GenerateKeyPair (CK_SESSION_HANDLE hSession,
sftk_FreeObject(publicKey);
NSC_DestroyObject(hSession,privateKey->handle);
sftk_FreeObject(privateKey);
return crv;
}

*phPrivateKey = privateKey->handle;
Expand Down

0 comments on commit 3e428ad

Please sign in to comment.