summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorjob <>2021-09-02 15:59:05 +0000
committerjob <>2021-09-02 15:59:05 +0000
commit7671b367d64a5498e0714a501e0a0392d2397c83 (patch)
tree282238cb663448449822a723e92d2abac0ecc577 /src/lib
parent7daf39340a6088bdd0268abdbafcc61fd0c987f8 (diff)
downloadopenbsd-7671b367d64a5498e0714a501e0a0392d2397c83.tar.gz
openbsd-7671b367d64a5498e0714a501e0a0392d2397c83.tar.bz2
openbsd-7671b367d64a5498e0714a501e0a0392d2397c83.zip
OPENSSL_assert() is not appropriate in this context
Feedback from tb@ OK tb@
Diffstat (limited to 'src/lib')
-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