summaryrefslogtreecommitdiffstats
path: root/crypto/x509/pcy_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/x509/pcy_cache.c')
-rw-r--r--crypto/x509/pcy_cache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/x509/pcy_cache.c b/crypto/x509/pcy_cache.c
index e9f45a80bb..b5bb49d437 100644
--- a/crypto/x509/pcy_cache.c
+++ b/crypto/x509/pcy_cache.c
@@ -63,6 +63,8 @@ static int policy_cache_create(X509 *x,
}
data = NULL;
}
+ /* Sort so we can find more quickly */
+ sk_X509_POLICY_DATA_sort(cache->data);
ret = 1;
bad_policy: