From f6b9783166889555c3d695e152b467a092859b8c Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 24 Dec 2021 02:22:16 +0000 Subject: Remove assert from extract_min_max() (again) All callers ensure that aor != NULL, so this isn't necessary. ok jsing --- src/lib/libcrypto/x509/x509_asid.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/libcrypto/x509/x509_asid.c b/src/lib/libcrypto/x509/x509_asid.c index 3fdacb711f..5eeb5953d3 100644 --- a/src/lib/libcrypto/x509/x509_asid.c +++ b/src/lib/libcrypto/x509/x509_asid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_asid.c,v 1.24 2021/12/24 02:17:27 tb Exp $ */ +/* $OpenBSD: x509_asid.c,v 1.25 2021/12/24 02:22:16 tb Exp $ */ /* * Contributed to the OpenSSL Project by the American Registry for * Internet Numbers ("ARIN"). @@ -474,8 +474,6 @@ X509v3_asid_add_id_or_range(ASIdentifiers *asid, int which, ASN1_INTEGER *min, static int extract_min_max(ASIdOrRange *aor, ASN1_INTEGER **min, ASN1_INTEGER **max) { - OPENSSL_assert(aor != NULL); - switch (aor->type) { case ASIdOrRange_id: *min = aor->u.id; -- cgit v1.2.3-55-g6feb