projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "OPENSSL_NO_xxx cleanup: RFC3779"
[openssl.git]
/
crypto
/
x509v3
/
pcy_tree.c
diff --git
a/crypto/x509v3/pcy_tree.c
b/crypto/x509v3/pcy_tree.c
index 2a41903a72e8f42ef1f45f75d62a81537b5db908..c6be0151936d2190a2361a3d302e46b2391217d0 100644
(file)
--- a/
crypto/x509v3/pcy_tree.c
+++ b/
crypto/x509v3/pcy_tree.c
@@
-217,7
+217,7
@@
static int tree_init(X509_POLICY_TREE **ptree, STACK_OF(X509) *certs,
}
/* If we get this far initialize the tree */
}
/* If we get this far initialize the tree */
- tree = OPENSSL_
m
alloc(sizeof(*tree));
+ tree = OPENSSL_
z
alloc(sizeof(*tree));
if (!tree)
return 0;
tree->levels = OPENSSL_zalloc(sizeof(*tree->levels) * n);
if (!tree)
return 0;
tree->levels = OPENSSL_zalloc(sizeof(*tree->levels) * n);
@@
-225,10
+225,6
@@
static int tree_init(X509_POLICY_TREE **ptree, STACK_OF(X509) *certs,
OPENSSL_free(tree);
return 0;
}
OPENSSL_free(tree);
return 0;
}
- tree->flags = 0;
- tree->extra_data = NULL;
- tree->auth_policies = NULL;
- tree->user_policies = NULL;
tree->nlevel = n;
level = tree->levels;
tree->nlevel = n;
level = tree->levels;