summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/x509/x509_asid.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_asid.c b/src/lib/libcrypto/x509/x509_asid.c
index 56283cbe2b..bcb6e4ea1d 100644
--- a/src/lib/libcrypto/x509/x509_asid.c
+++ b/src/lib/libcrypto/x509/x509_asid.c
@@ -218,11 +218,12 @@ static int ASIdOrRange_cmp(const ASIdOrRange *const *a_,
218{ 218{
219 const ASIdOrRange *a = *a_, *b = *b_; 219 const ASIdOrRange *a = *a_, *b = *b_;
220 220
221 OPENSSL_assert((a->type == ASIdOrRange_id && a->u.id != NULL) || 221 /* XXX: these asserts need to be replaced */
222 assert((a->type == ASIdOrRange_id && a->u.id != NULL) ||
222 (a->type == ASIdOrRange_range && a->u.range != NULL && 223 (a->type == ASIdOrRange_range && a->u.range != NULL &&
223 a->u.range->min != NULL && a->u.range->max != NULL)); 224 a->u.range->min != NULL && a->u.range->max != NULL));
224 225
225 OPENSSL_assert((b->type == ASIdOrRange_id && b->u.id != NULL) || 226 assert((b->type == ASIdOrRange_id && b->u.id != NULL) ||
226 (b->type == ASIdOrRange_range && b->u.range != NULL && 227 (b->type == ASIdOrRange_range && b->u.range != NULL &&
227 b->u.range->min != NULL && b->u.range->max != NULL)); 228 b->u.range->min != NULL && b->u.range->max != NULL));
228 229