diff --git a/src/tpm2/crypto/openssl/Helpers.c b/src/tpm2/crypto/openssl/Helpers.c index 71d4960f..308b70db 100644 --- a/src/tpm2/crypto/openssl/Helpers.c +++ b/src/tpm2/crypto/openssl/Helpers.c @@ -867,7 +867,7 @@ InitOpenSSLRSAPrivateKey(OBJECT *rsaKey, // IN TPM_RC retVal; if (ObjectGetPublicParameters(rsaKey, &N, &E) != 1) - return TPM_RC_FAILURE; + ERROR_EXIT(TPM_RC_FAILURE); if(!rsaKey->attributes.privateExp) CryptRsaLoadPrivateExponent(&rsaKey->publicArea, &rsaKey->sensitive,