diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/x509/x509_crld.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/libcrypto/x509/x509_crld.c b/src/lib/libcrypto/x509/x509_crld.c index e9252a247a..1510576e83 100644 --- a/src/lib/libcrypto/x509/x509_crld.c +++ b/src/lib/libcrypto/x509/x509_crld.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_crld.c,v 1.7 2024/07/13 15:08:58 tb Exp $ */ | 1 | /* $OpenBSD: x509_crld.c,v 1.8 2025/03/06 07:17:45 tb 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 | */ |
@@ -133,9 +133,7 @@ gnames_from_sectname(X509V3_CTX *ctx, char *sect) | |||
133 | return NULL; | 133 | return NULL; |
134 | } | 134 | } |
135 | gens = v2i_GENERAL_NAMES(NULL, ctx, gnsect); | 135 | gens = v2i_GENERAL_NAMES(NULL, ctx, gnsect); |
136 | if (*sect == '@') | 136 | if (*sect != '@') |
137 | X509V3_section_free(ctx, gnsect); | ||
138 | else | ||
139 | sk_CONF_VALUE_pop_free(gnsect, X509V3_conf_free); | 137 | sk_CONF_VALUE_pop_free(gnsect, X509V3_conf_free); |
140 | return gens; | 138 | return gens; |
141 | } | 139 | } |
@@ -164,7 +162,6 @@ set_dist_point_name(DIST_POINT_NAME **pdp, X509V3_CTX *ctx, CONF_VALUE *cnf) | |||
164 | return -1; | 162 | return -1; |
165 | } | 163 | } |
166 | ret = X509V3_NAME_from_section(nm, dnsect, MBSTRING_ASC); | 164 | ret = X509V3_NAME_from_section(nm, dnsect, MBSTRING_ASC); |
167 | X509V3_section_free(ctx, dnsect); | ||
168 | rnm = nm->entries; | 165 | rnm = nm->entries; |
169 | nm->entries = NULL; | 166 | nm->entries = NULL; |
170 | X509_NAME_free(nm); | 167 | X509_NAME_free(nm); |
@@ -337,7 +334,6 @@ v2i_crld(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, | |||
337 | if (!dpsect) | 334 | if (!dpsect) |
338 | goto err; | 335 | goto err; |
339 | point = crldp_from_section(ctx, dpsect); | 336 | point = crldp_from_section(ctx, dpsect); |
340 | X509V3_section_free(ctx, dpsect); | ||
341 | if (!point) | 337 | if (!point) |
342 | goto err; | 338 | goto err; |
343 | if (!sk_DIST_POINT_push(crld, point)) { | 339 | if (!sk_DIST_POINT_push(crld, point)) { |