diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-03-25 18:20:48 +0300 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2021-04-08 16:18:58 +0300 |
commit | 6d9e045ef724df0ddc8c8f66dcfdff4f8ba0bc03 (patch) | |
tree | 3106b5b285db7b320a95b50d1b7dca631f2ac6ed /crypto/asn1/d2i_pr.c | |
parent | 4957d9520822f79abbb6c3cd8fe0b79837c2e64f (diff) |
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)
Diffstat (limited to 'crypto/asn1/d2i_pr.c')
-rw-r--r-- | crypto/asn1/d2i_pr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/d2i_pr.c b/crypto/asn1/d2i_pr.c index 9d9c1898cb..94bd341d58 100644 --- a/crypto/asn1/d2i_pr.c +++ b/crypto/asn1/d2i_pr.c @@ -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); |