diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2008-07-13 22:38:18 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2008-07-13 22:38:18 +0000 |
commit | 34d05a402325411ff80cb8aa90044550556db2bd (patch) | |
tree | aa2118901be19bd4329e392916b7737881552bc8 /crypto/x509v3/pcy_tree.c | |
parent | dcc0c29876568314eb190dfd632a6366d1fc70a5 (diff) |
Zero is a valid value for any_skip and map_skip
Diffstat (limited to 'crypto/x509v3/pcy_tree.c')
-rw-r--r-- | crypto/x509v3/pcy_tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/x509v3/pcy_tree.c b/crypto/x509v3/pcy_tree.c index aed0155c2a..846d3eae04 100644 --- a/crypto/x509v3/pcy_tree.c +++ b/crypto/x509v3/pcy_tree.c @@ -203,7 +203,7 @@ static int tree_init(X509_POLICY_TREE **ptree, STACK_OF(X509) *certs, else { any_skip--; - if ((cache->any_skip > 0) + if ((cache->any_skip >= 0) && (cache->any_skip < any_skip)) any_skip = cache->any_skip; } @@ -213,7 +213,7 @@ static int tree_init(X509_POLICY_TREE **ptree, STACK_OF(X509) *certs, else { map_skip--; - if ((cache->map_skip > 0) + if ((cache->map_skip >= 0) && (cache->map_skip < map_skip)) map_skip = cache->map_skip; } |