[openssl-commits] [openssl] OpenSSL_1_0_2-stable update
Richard Levitte
levitte at openssl.org
Tue Oct 24 08:40:49 UTC 2017
The branch OpenSSL_1_0_2-stable has been updated
via deee898ef94a176a22fce3b9effc957cb75bb535 (commit)
from cdc3307d4257f4fcebbab3b2b44207e1a399da05 (commit)
- Log -----------------------------------------------------------------
commit deee898ef94a176a22fce3b9effc957cb75bb535
Author: Xiangyu Bu <xybu at users.noreply.github.com>
Date: Tue Oct 17 17:10:53 2017 -0700
Fix memory leak in GENERAL_NAME_set0_othername.
CLA: trivial
Reviewed-by: Tim Hudson <tjh at openssl.org>
Reviewed-by: Richard Levitte <levitte at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4544)
(cherry picked from commit 04761b557a53f026630dd5916b2b8522d94579db)
-----------------------------------------------------------------------
Summary of changes:
crypto/x509v3/v3_genn.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/crypto/x509v3/v3_genn.c b/crypto/x509v3/v3_genn.c
index 7f40bfa..9bb01ee 100644
--- a/crypto/x509v3/v3_genn.c
+++ b/crypto/x509v3/v3_genn.c
@@ -231,6 +231,7 @@ int GENERAL_NAME_set0_othername(GENERAL_NAME *gen,
oth = OTHERNAME_new();
if (!oth)
return 0;
+ ASN1_TYPE_free(oth->value);
oth->type_id = oid;
oth->value = value;
GENERAL_NAME_set0_value(gen, GEN_OTHERNAME, oth);
More information about the openssl-commits
mailing list