diff options
author | miod <> | 2014-10-05 18:27:58 +0000 |
---|---|---|
committer | miod <> | 2014-10-05 18:27:58 +0000 |
commit | 44741f98424ed014b15e9fa75544019440477522 (patch) | |
tree | 32720df021e86e44e545e5140622fbbb8149fcb5 /src | |
parent | 609efe03272c03a3afd19ef0d2ffc52628952350 (diff) | |
download | openbsd-44741f98424ed014b15e9fa75544019440477522.tar.gz openbsd-44741f98424ed014b15e9fa75544019440477522.tar.bz2 openbsd-44741f98424ed014b15e9fa75544019440477522.zip |
Memory leak upon error in set_dist_point_name().
ok guenther@
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_crld.c | 3 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/x509v3/v3_crld.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_crld.c b/src/lib/libcrypto/x509v3/v3_crld.c index aac0c7706e..9586401da6 100644 --- a/src/lib/libcrypto/x509v3/v3_crld.c +++ b/src/lib/libcrypto/x509v3/v3_crld.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: v3_crld.c,v 1.12 2014/07/11 08:44:49 jsing Exp $ */ | 1 | /* $OpenBSD: v3_crld.c,v 1.13 2014/10/05 18:27:58 miod Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -134,6 +134,7 @@ set_dist_point_name(DIST_POINT_NAME **pdp, X509V3_CTX *ctx, CONF_VALUE *cnf) | |||
134 | if (!dnsect) { | 134 | if (!dnsect) { |
135 | X509V3err(X509V3_F_SET_DIST_POINT_NAME, | 135 | X509V3err(X509V3_F_SET_DIST_POINT_NAME, |
136 | X509V3_R_SECTION_NOT_FOUND); | 136 | X509V3_R_SECTION_NOT_FOUND); |
137 | X509_NAME_free(nm); | ||
137 | return -1; | 138 | return -1; |
138 | } | 139 | } |
139 | ret = X509V3_NAME_from_section(nm, dnsect, MBSTRING_ASC); | 140 | ret = X509V3_NAME_from_section(nm, dnsect, MBSTRING_ASC); |
diff --git a/src/lib/libssl/src/crypto/x509v3/v3_crld.c b/src/lib/libssl/src/crypto/x509v3/v3_crld.c index aac0c7706e..9586401da6 100644 --- a/src/lib/libssl/src/crypto/x509v3/v3_crld.c +++ b/src/lib/libssl/src/crypto/x509v3/v3_crld.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: v3_crld.c,v 1.12 2014/07/11 08:44:49 jsing Exp $ */ | 1 | /* $OpenBSD: v3_crld.c,v 1.13 2014/10/05 18:27:58 miod Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -134,6 +134,7 @@ set_dist_point_name(DIST_POINT_NAME **pdp, X509V3_CTX *ctx, CONF_VALUE *cnf) | |||
134 | if (!dnsect) { | 134 | if (!dnsect) { |
135 | X509V3err(X509V3_F_SET_DIST_POINT_NAME, | 135 | X509V3err(X509V3_F_SET_DIST_POINT_NAME, |
136 | X509V3_R_SECTION_NOT_FOUND); | 136 | X509V3_R_SECTION_NOT_FOUND); |
137 | X509_NAME_free(nm); | ||
137 | return -1; | 138 | return -1; |
138 | } | 139 | } |
139 | ret = X509V3_NAME_from_section(nm, dnsect, MBSTRING_ASC); | 140 | ret = X509V3_NAME_from_section(nm, dnsect, MBSTRING_ASC); |