From 7671b367d64a5498e0714a501e0a0392d2397c83 Mon Sep 17 00:00:00 2001 From: job <> Date: Thu, 2 Sep 2021 15:59:05 +0000 Subject: OPENSSL_assert() is not appropriate in this context Feedback from tb@ OK tb@ --- src/lib/libcrypto/x509/x509_asid.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib') 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_, { const ASIdOrRange *a = *a_, *b = *b_; - OPENSSL_assert((a->type == ASIdOrRange_id && a->u.id != NULL) || + /* XXX: these asserts need to be replaced */ + assert((a->type == ASIdOrRange_id && a->u.id != NULL) || (a->type == ASIdOrRange_range && a->u.range != NULL && a->u.range->min != NULL && a->u.range->max != NULL)); - OPENSSL_assert((b->type == ASIdOrRange_id && b->u.id != NULL) || + assert((b->type == ASIdOrRange_id && b->u.id != NULL) || (b->type == ASIdOrRange_range && b->u.range != NULL && b->u.range->min != NULL && b->u.range->max != NULL)); -- cgit v1.2.3-55-g6feb