diff options
author | Viktor Dukhovni <openssl-users@dukhovni.org> | 2016-01-31 21:14:51 -0500 |
---|---|---|
committer | Viktor Dukhovni <openssl-users@dukhovni.org> | 2016-02-05 11:13:11 -0500 |
commit | 895c2f84a6a083fc8b9f69f962ed19da12ce3b40 (patch) | |
tree | 2b338ff7dc3044f48040efe9f77af3ac5bd9c1e5 /crypto/x509v3/pcy_node.c | |
parent | a0474357743b5cc4db1b5428ac3db85b1168d3a9 (diff) |
Long overdue cleanup of X509 policy tree verification
Replace all magic numbers with #defined constants except in boolean
functions that return 0 for failure and 1 for success. Avoid a
couple memory leaks in error recovery code paths. Code style
improvements.
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
Diffstat (limited to 'crypto/x509v3/pcy_node.c')
-rw-r--r-- | crypto/x509v3/pcy_node.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/x509v3/pcy_node.c b/crypto/x509v3/pcy_node.c index e8007c23f9..581c246b74 100644 --- a/crypto/x509v3/pcy_node.c +++ b/crypto/x509v3/pcy_node.c @@ -151,8 +151,7 @@ X509_POLICY_NODE *level_add_node(X509_POLICY_LEVEL *level, node_error: policy_node_free(node); - return 0; - + return NULL; } void policy_node_free(X509_POLICY_NODE *node) |