diff options
author | Rob Austein <sra@hactrn.net> | 2006-08-17 05:28:36 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2006-08-17 05:28:36 +0000 |
commit | 9b45929dbfecfbd16593ed808fe562a0bed3b7fb (patch) | |
tree | 7ebe8c1fcb9411c8ddb965ba0c1a59e66ca7b041 /openssl/trunk/crypto | |
parent | d80d472a9fdad0c400966f54682d3e37558c0e39 (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.c | 5 |
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; /* |