diff options
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_pci.c')
| -rw-r--r-- | src/lib/libcrypto/x509v3/v3_pci.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_pci.c b/src/lib/libcrypto/x509v3/v3_pci.c index dd015452d0..437b3aee3d 100644 --- a/src/lib/libcrypto/x509v3/v3_pci.c +++ b/src/lib/libcrypto/x509v3/v3_pci.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: v3_pci.c,v 1.12 2017/01/29 17:49:23 beck Exp $ */ | 1 | /* $OpenBSD: v3_pci.c,v 1.13 2017/05/02 04:11:08 deraadt Exp $ */ |
| 2 | /* Contributed to the OpenSSL Project 2004 | 2 | /* Contributed to the OpenSSL Project 2004 |
| 3 | * by Richard Levitte (richard@levitte.org) | 3 | * by Richard Levitte (richard@levitte.org) |
| 4 | */ | 4 | */ |
| @@ -298,18 +298,12 @@ r2i_pci(X509V3_EXT_METHOD *method, X509V3_CTX *ctx, char *value) | |||
| 298 | goto end; | 298 | goto end; |
| 299 | 299 | ||
| 300 | err: | 300 | err: |
| 301 | if (language) { | 301 | ASN1_OBJECT_free(language); |
| 302 | ASN1_OBJECT_free(language); | 302 | language = NULL; |
| 303 | language = NULL; | 303 | ASN1_INTEGER_free(pathlen); |
| 304 | } | 304 | pathlen = NULL; |
| 305 | if (pathlen) { | 305 | ASN1_OCTET_STRING_free(policy); |
| 306 | ASN1_INTEGER_free(pathlen); | 306 | policy = NULL; |
| 307 | pathlen = NULL; | ||
| 308 | } | ||
| 309 | if (policy) { | ||
| 310 | ASN1_OCTET_STRING_free(policy); | ||
| 311 | policy = NULL; | ||
| 312 | } | ||
| 313 | end: | 307 | end: |
| 314 | sk_CONF_VALUE_pop_free(vals, X509V3_conf_free); | 308 | sk_CONF_VALUE_pop_free(vals, X509V3_conf_free); |
| 315 | return pci; | 309 | return pci; |
