framework-pkcs15: Fixed a SIGV when key generation returned ERROR_NOT_SUPPORTED

This commit is contained in:
Andreas Schwier 2012-09-25 15:34:07 +02:00 committed by Viktor Tarasov
parent 1619a42375
commit a9393aa983
1 changed files with 1 additions and 1 deletions

View File

@ -2638,7 +2638,7 @@ pkcs15_gen_keypair(struct sc_pkcs11_slot *slot, CK_MECHANISM_PTR pMechanism,
goto kpgen_done;
}
}
else if (rc != SC_ERROR_NOT_SUPPORTED) {
else {
sc_log(context, "sc_pkcs15init_generate_key returned %d", rc);
rv = sc_to_cryptoki_error(rc, "C_GenerateKeyPair");
goto kpgen_done;