aboutsummaryrefslogtreecommitdiff
path: root/openssl/trunk/crypto
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2006-08-17 05:28:36 +0000
committerRob Austein <sra@hactrn.net>2006-08-17 05:28:36 +0000
commit9b45929dbfecfbd16593ed808fe562a0bed3b7fb (patch)
tree7ebe8c1fcb9411c8ddb965ba0c1a59e66ca7b041 /openssl/trunk/crypto
parentd80d472a9fdad0c400966f54682d3e37558c0e39 (diff)
More corner cases.
svn path=/openssl/trunk/crypto/x509v3/v3_asid.c; revision=169
Diffstat (limited to 'openssl/trunk/crypto')
-rw-r--r--openssl/trunk/crypto/x509v3/v3_asid.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openssl/trunk/crypto/x509v3/v3_asid.c b/openssl/trunk/crypto/x509v3/v3_asid.c
index 1c10a491..58372270 100644
--- a/openssl/trunk/crypto/x509v3/v3_asid.c
+++ b/openssl/trunk/crypto/x509v3/v3_asid.c
@@ -252,9 +252,10 @@ static int asid_is_canonical(ASIdentifierChoice *choice)
return 1;
/*
- * If it's not a list at this point, it's broken.
+ * If not a list, or if empty list, it's broken.
*/
- if (choice->type != ASIdentifierChoice_asIdsOrRanges)
+ if (choice->type != ASIdentifierChoice_asIdsOrRanges ||
+ sk_ASIdOrRange_num(choice->u.asIdsOrRanges) == 0)
return 0;
/*