projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add X509_up_ref function.
[openssl.git]
/
crypto
/
x509v3
/
pcy_tree.c
diff --git
a/crypto/x509v3/pcy_tree.c
b/crypto/x509v3/pcy_tree.c
index e7ab7cd8b1bbfebde53bf1d093b93cff5f750e93..4b0ea15b6dd37ddd4433971b94005cdbdb184684 100644
(file)
--- a/
crypto/x509v3/pcy_tree.c
+++ b/
crypto/x509v3/pcy_tree.c
@@
-249,7
+249,7
@@
static int tree_init(X509_POLICY_TREE **ptree, STACK_OF(X509) *certs,
level++;
x = sk_X509_value(certs, i);
cache = policy_cache_set(x);
-
CRYPTO_add(&x->references, 1, CRYPTO_LOCK_X509
);
+
X509_up_ref(x
);
level->cert = x;
if (!cache->anyPolicy)