mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
d2i_PrivateKey_decoder(): Fix premature exit on unsuccessful OSSL_DECODER_CTX_new_for_pkey()
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14647)
This commit is contained in:
parent
4957d95208
commit
6d9e045ef7
@ -52,7 +52,7 @@ d2i_PrivateKey_decoder(int keytype, EVP_PKEY **a, const unsigned char **pp,
|
||||
if (a != NULL)
|
||||
*a = bak_a;
|
||||
if (dctx == NULL)
|
||||
return NULL;
|
||||
continue;
|
||||
|
||||
ret = OSSL_DECODER_from_data(dctx, pp, &len);
|
||||
OSSL_DECODER_CTX_free(dctx);
|
||||
|
Loading…
Reference in New Issue
Block a user