diff options
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_ncons.c')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_ncons.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_ncons.c b/src/lib/libcrypto/x509v3/v3_ncons.c index 88643981ca..d22ca5e9cd 100644 --- a/src/lib/libcrypto/x509v3/v3_ncons.c +++ b/src/lib/libcrypto/x509v3/v3_ncons.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: v3_ncons.c,v 1.11 2017/01/29 17:49:23 beck Exp $ */ | 1 | /* $OpenBSD: v3_ncons.c,v 1.12 2017/05/02 04:11:08 deraadt 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. | 3 | * project. |
4 | */ | 4 | */ |
@@ -223,11 +223,8 @@ v2i_NAME_CONSTRAINTS(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, | |||
223 | memerr: | 223 | memerr: |
224 | X509V3error(ERR_R_MALLOC_FAILURE); | 224 | X509V3error(ERR_R_MALLOC_FAILURE); |
225 | err: | 225 | err: |
226 | if (ncons) | 226 | NAME_CONSTRAINTS_free(ncons); |
227 | NAME_CONSTRAINTS_free(ncons); | 227 | GENERAL_SUBTREE_free(sub); |
228 | if (sub) | ||
229 | GENERAL_SUBTREE_free(sub); | ||
230 | |||
231 | return NULL; | 228 | return NULL; |
232 | } | 229 | } |
233 | 230 | ||