aboutsummaryrefslogtreecommitdiff
path: root/openssl/crypto/x509v3/pcy_tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/crypto/x509v3/pcy_tree.c')
-rw-r--r--openssl/crypto/x509v3/pcy_tree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/openssl/crypto/x509v3/pcy_tree.c b/openssl/crypto/x509v3/pcy_tree.c
index 92f6b2455..bb9777348 100644
--- a/openssl/crypto/x509v3/pcy_tree.c
+++ b/openssl/crypto/x509v3/pcy_tree.c
@@ -341,9 +341,8 @@ static int tree_link_nodes(X509_POLICY_LEVEL *curr,
const X509_POLICY_CACHE *cache)
{
int i;
- X509_POLICY_LEVEL *last;
X509_POLICY_DATA *data;
- last = curr - 1;
+
for (i = 0; i < sk_X509_POLICY_DATA_num(cache->data); i++)
{
data = sk_X509_POLICY_DATA_value(cache->data, i);