diff options
-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; /* |