projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6252f3b
)
PR: 1616
author
Dr. Stephen Henson
<steve@openssl.org>
Fri, 3 Apr 2009 11:36:49 +0000
(11:36 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Fri, 3 Apr 2009 11:36:49 +0000
(11:36 +0000)
Submitted by: Dequin_Eric@emc.com
Approved by: steve@openssl.org
Check tree->levels to ensure malloc worked.
crypto/x509v3/pcy_tree.c
patch
|
blob
|
history
diff --git
a/crypto/x509v3/pcy_tree.c
b/crypto/x509v3/pcy_tree.c
index 6c87a7f506c6c42577733b2a4bc215b5eb9f0454..89f84bfa18b2edff4eeb7e9a4a8cb0be7de7c04d 100644
(file)
--- 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;