summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-04-03 11:36:49 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-04-03 11:36:49 +0000
commit353cb367e4f27779a3bd331d9c0a57014a67eff4 (patch)
tree7f2fcaab624ffc89603088b3066c6f8e68e75e09 /crypto
parent6252f3bc7c2dfd79ebd673dcffababc2f37752f1 (diff)
PR: 1616
Submitted by: Dequin_Eric@emc.com Approved by: steve@openssl.org Check tree->levels to ensure malloc worked.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/x509v3/pcy_tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509v3/pcy_tree.c b/crypto/x509v3/pcy_tree.c
index 6c87a7f506..89f84bfa18 100644
--- a/crypto/x509v3/pcy_tree.c
+++ b/crypto/x509v3/pcy_tree.c
@@ -160,7 +160,7 @@ static int tree_init(X509_POLICY_TREE **ptree, STACK_OF(X509) *certs,
tree->auth_policies = NULL;
tree->user_policies = NULL;
- if (!tree)
+ if (!tree->levels)
{
OPENSSL_free(tree);
return 0;