diff options
author | deraadt <> | 2017-05-02 04:11:08 +0000 |
---|---|---|
committer | deraadt <> | 2017-05-02 04:11:08 +0000 |
commit | 75b92fd954a289e0af58a52a0fb48c3752eeac58 (patch) | |
tree | 8c37c7abb922dc7a2188a27142a55721825b03f1 /src/lib/libcrypto/x509v3/v3_pci.c | |
parent | 710782e8c80f6152718ade9fe0773c70022dc530 (diff) | |
download | openbsd-75b92fd954a289e0af58a52a0fb48c3752eeac58.tar.gz openbsd-75b92fd954a289e0af58a52a0fb48c3752eeac58.tar.bz2 openbsd-75b92fd954a289e0af58a52a0fb48c3752eeac58.zip |
the XXXfree functions being called accept NULL, so don't check first.
ok beck
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; |