diff options
Diffstat (limited to 'openssl/trunk/crypto')
-rw-r--r-- | openssl/trunk/crypto/x509v3/v3_addr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openssl/trunk/crypto/x509v3/v3_addr.c b/openssl/trunk/crypto/x509v3/v3_addr.c index 79cac30f..3bab7767 100644 --- a/openssl/trunk/crypto/x509v3/v3_addr.c +++ b/openssl/trunk/crypto/x509v3/v3_addr.c @@ -642,6 +642,7 @@ static int IPAddressOrRanges_canonize(IPAddressOrRanges *aors, * Comparing prefix a with prefix b. If they're adjacent, we need * to merge them into a range. */ +#error This may leave an ill-formed range, need to regenerate if (a->type == IPAddressOrRange_addressPrefix && b->type == IPAddressOrRange_addressPrefix && addr_cmp(a->u.addressPrefix, b->u.addressPrefix, @@ -667,6 +668,7 @@ static int IPAddressOrRanges_canonize(IPAddressOrRanges *aors, * Comparing prefix a with range b. If they overlap or are * adjacent, we merge them into a range. */ +#error This may leave an ill-formed range, need to regenerate if (a->type == IPAddressOrRange_addressPrefix && addr_cmp(a->u.addressPrefix, b->u.addressRange->min, 0xFF, 0x00, length, 1) >= 0) { @@ -686,6 +688,7 @@ static int IPAddressOrRanges_canonize(IPAddressOrRanges *aors, * Comparing range a with prefix b. If they overlap or are * adjacent, we merge them into a range. */ +#error This may leave an ill-formed range, need to regenerate if (b->type == IPAddressOrRange_addressPrefix && addr_cmp(a->u.addressRange->max, b->u.addressPrefix, 0xFF, 0x00, length, 1) >= 0) { |