[openssl] openssl-3.0 update
Dr. Paul Dale
pauli at openssl.org
Tue Nov 9 00:06:51 UTC 2021
The branch openssl-3.0 has been updated
via eaa76f4788ff1dfa82b0ab9172c81d70bcd1fb59 (commit)
from f6d4ab9295a173c81e6fe4185ec62533d91b0c6d (commit)
- Log -----------------------------------------------------------------
commit eaa76f4788ff1dfa82b0ab9172c81d70bcd1fb59
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 d5ef8e3408..bed2d049b4 100644
--- a/crypto/x509/x_name.c
+++ b/crypto/x509/x_name.c
@@ -219,8 +219,8 @@ static int x509_name_ex_i2d(const 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