diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-04-03 11:36:49 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-04-03 11:36:49 +0000 |
commit | 353cb367e4f27779a3bd331d9c0a57014a67eff4 (patch) | |
tree | 7f2fcaab624ffc89603088b3066c6f8e68e75e09 /crypto | |
parent | 6252f3bc7c2dfd79ebd673dcffababc2f37752f1 (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.c | 2 |
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; |