From: tb Date: Fri, 24 Dec 2021 02:07:37 +0000 (+0000) Subject: Remove assert from extract_min_max() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d5a863b5372f3e27f7ae14343d133cdbf7cf865a;p=openbsd Remove assert from extract_min_max() All callers ensure that aor != NULL, so this isn't necessary. ok jsing --- diff --git a/lib/libcrypto/x509/x509_asid.c b/lib/libcrypto/x509/x509_asid.c index 3e6f0252323..808dad7552e 100644 --- a/lib/libcrypto/x509/x509_asid.c +++ b/lib/libcrypto/x509/x509_asid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_asid.c,v 1.21 2021/12/24 02:04:00 tb Exp $ */ +/* $OpenBSD: x509_asid.c,v 1.22 2021/12/24 02:07:37 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;