summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjob <>2021-09-02 15:59:05 +0000
committerjob <>2021-09-02 15:59:05 +0000
commit008d2b1ef14dd7000f7cf441b1b7fea5e06229c0 (patch)
tree282238cb663448449822a723e92d2abac0ecc577 /src
parent6828da1934832232f86f899f5e828636f4aae3fa (diff)
downloadopenbsd-008d2b1ef14dd7000f7cf441b1b7fea5e06229c0.tar.gz
openbsd-008d2b1ef14dd7000f7cf441b1b7fea5e06229c0.tar.bz2
openbsd-008d2b1ef14dd7000f7cf441b1b7fea5e06229c0.zip
OPENSSL_assert() is not appropriate in this context
Feedback from tb@ OK tb@
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