diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-06-24 12:28:50 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-06-25 04:55:05 +0100 |
commit | ffbf304d4832bd51bb0618f8ca5b7c26647ee664 (patch) | |
tree | c514b3d2978d1e053a3e75bfd4ff2cc38867db59 /crypto | |
parent | 77672802a665b26a44524a7a8091e56ee84bdf39 (diff) | |
download | openssl-ffbf304d4832bd51bb0618f8ca5b7c26647ee664.tar.gz |
Don't output bogus errors in PKCS12_parse
PR#3923
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/pkcs12/p12_kiss.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/pkcs12/p12_kiss.c b/crypto/pkcs12/p12_kiss.c index a70fe72d09..fdddffbab4 100644 --- a/crypto/pkcs12/p12_kiss.c +++ b/crypto/pkcs12/p12_kiss.c @@ -135,10 +135,12 @@ int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert, while ((x = sk_X509_pop(ocerts))) { if (pkey && *pkey && cert && !*cert) { + ERR_set_mark(); if (X509_check_private_key(x, *pkey)) { *cert = x; x = NULL; } + ERR_pop_to_mark(); } if (ca && x) { |