diff options
author | beck <> | 2015-07-18 00:01:05 +0000 |
---|---|---|
committer | beck <> | 2015-07-18 00:01:05 +0000 |
commit | 6f4d6461c56d882eecea37a2948d1ed154d1e4f4 (patch) | |
tree | 25db56092e900936a88d6a24c309127fb1a71f59 /src/lib/libcrypto/x509v3/pcy_int.h | |
parent | 23be51621d39d0841038d456c00cfeba9add7c62 (diff) | |
download | openbsd-6f4d6461c56d882eecea37a2948d1ed154d1e4f4.tar.gz openbsd-6f4d6461c56d882eecea37a2948d1ed154d1e4f4.tar.bz2 openbsd-6f4d6461c56d882eecea37a2948d1ed154d1e4f4.zip |
Fix leak found by coverity, issue 78897 - which also brough to
light that the child counting was broken in the original code.
this is still fugly, but this preserves all the existing goo.
ok doug@
Diffstat (limited to 'src/lib/libcrypto/x509v3/pcy_int.h')
-rw-r--r-- | src/lib/libcrypto/x509v3/pcy_int.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509v3/pcy_int.h b/src/lib/libcrypto/x509v3/pcy_int.h index 3f8a8316e2..50ed7cbfcf 100644 --- a/src/lib/libcrypto/x509v3/pcy_int.h +++ b/src/lib/libcrypto/x509v3/pcy_int.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pcy_int.h,v 1.3 2014/06/12 15:49:31 deraadt Exp $ */ | 1 | /* $OpenBSD: pcy_int.h,v 1.4 2015/07/18 00:01:05 beck 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 2004. | 3 | * project 2004. |
4 | */ | 4 | */ |
@@ -196,9 +196,9 @@ X509_POLICY_NODE *level_find_node(const X509_POLICY_LEVEL *level, | |||
196 | X509_POLICY_NODE *tree_find_sk(STACK_OF(X509_POLICY_NODE) *sk, | 196 | X509_POLICY_NODE *tree_find_sk(STACK_OF(X509_POLICY_NODE) *sk, |
197 | const ASN1_OBJECT *id); | 197 | const ASN1_OBJECT *id); |
198 | 198 | ||
199 | X509_POLICY_NODE *level_add_node(X509_POLICY_LEVEL *level, | 199 | int level_add_node(X509_POLICY_LEVEL *level, |
200 | const X509_POLICY_DATA *data, X509_POLICY_NODE *parent, | 200 | const X509_POLICY_DATA *data, X509_POLICY_NODE *parent, |
201 | X509_POLICY_TREE *tree); | 201 | X509_POLICY_TREE *tree, X509_POLICY_NODE **nodep); |
202 | void policy_node_free(X509_POLICY_NODE *node); | 202 | void policy_node_free(X509_POLICY_NODE *node); |
203 | int policy_node_match(const X509_POLICY_LEVEL *lvl, | 203 | int policy_node_match(const X509_POLICY_LEVEL *lvl, |
204 | const X509_POLICY_NODE *node, const ASN1_OBJECT *oid); | 204 | const X509_POLICY_NODE *node, const ASN1_OBJECT *oid); |