aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/x509/x509_err.c
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2020-05-17 14:45:28 +0200
committerBernd Edlinger <bernd.edlinger@hotmail.de>2020-05-18 17:16:16 +0200
commite9e7b5df865c0bcd0a99d8146ec05378892a36e1 (patch)
treeaedd9631e5ffb4c6b3272abadc301ab2d7d06889 /crypto/x509/x509_err.c
parent082394839ea32386abc7ee33aaa9da864287064c (diff)
downloadopenssl-e9e7b5df865c0bcd0a99d8146ec05378892a36e1.tar.gz
Fix some places where X509_up_ref is used
without error handling. This takes up the ball from #11278 without trying to solve everything at once. [extended tests] Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Kurt Roeckx <kurt@roeckx.be> (Merged from https://github.com/openssl/openssl/pull/11850)
Diffstat (limited to 'crypto/x509/x509_err.c')
-rw-r--r--crypto/x509/x509_err.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/x509/x509_err.c b/crypto/x509/x509_err.c
index e37024b59f..450f2a7930 100644
--- a/crypto/x509/x509_err.c
+++ b/crypto/x509/x509_err.c
@@ -20,10 +20,10 @@ static const ERR_STRING_DATA X509_str_reasons[] = {
{ERR_PACK(ERR_LIB_X509, 0, X509_R_BASE64_DECODE_ERROR),
"base64 decode error"},
{ERR_PACK(ERR_LIB_X509, 0, X509_R_CANT_CHECK_DH_KEY), "cant check dh key"},
- {ERR_PACK(ERR_LIB_X509, 0, X509_R_CERT_ALREADY_IN_HASH_TABLE),
- "cert already in hash table"},
{ERR_PACK(ERR_LIB_X509, 0, X509_R_CERTIFICATE_VERIFICATION_FAILED),
"certificate verification failed"},
+ {ERR_PACK(ERR_LIB_X509, 0, X509_R_CERT_ALREADY_IN_HASH_TABLE),
+ "cert already in hash table"},
{ERR_PACK(ERR_LIB_X509, 0, X509_R_CRL_ALREADY_DELTA), "crl already delta"},
{ERR_PACK(ERR_LIB_X509, 0, X509_R_CRL_VERIFY_FAILURE),
"crl verify failure"},