[openssl] OpenSSL_1_1_1-stable update
Dr. Paul Dale
pauli at openssl.org
Tue Nov 9 00:07:28 UTC 2021
The branch OpenSSL_1_1_1-stable has been updated
via 45838e536c08c74e68536501d6dc2ef9f4d499da (commit)
from 80e52bb852673cf6f1908549ff9960d02a644d51 (commit)
- Log -----------------------------------------------------------------
commit 45838e536c08c74e68536501d6dc2ef9f4d499da
Author: PW Hu <jlu.hpw at foxmail.com>
Date: Fri Nov 5 17:16:03 2021 +0800
Fix: invoking x509_name_cannon improperly
Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16974)
(cherry picked from commit 09235289c377ff998964bb6b074bb2a3ad768fd2)
-----------------------------------------------------------------------
Summary of changes:
crypto/x509/x_name.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/crypto/x509/x_name.c b/crypto/x509/x_name.c
index aa7f4722b6..2214e580c8 100644
--- a/crypto/x509/x_name.c
+++ b/crypto/x509/x_name.c
@@ -217,8 +217,8 @@ static int x509_name_ex_i2d(ASN1_VALUE **val, unsigned char **out,
if (ret < 0)
return ret;
ret = x509_name_canon(a);
- if (ret < 0)
- return ret;
+ if (!ret)
+ return -1;
}
ret = a->bytes->length;
if (out != NULL) {
More information about the openssl-commits
mailing list