summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2021-12-24 02:22:16 +0000
committertb <>2021-12-24 02:22:16 +0000
commitf6b9783166889555c3d695e152b467a092859b8c (patch)
tree36a26d4adf86eb52bbf6c8568c8e173ac13945ee /src
parentfa15e1fb558c746f8f8e71d2bce4500950cbea04 (diff)
downloadopenbsd-f6b9783166889555c3d695e152b467a092859b8c.tar.gz
openbsd-f6b9783166889555c3d695e152b467a092859b8c.tar.bz2
openbsd-f6b9783166889555c3d695e152b467a092859b8c.zip
Remove assert from extract_min_max() (again)
All callers ensure that aor != NULL, so this isn't necessary. ok jsing
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/x509/x509_asid.c4
1 files changed, 1 insertions, 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 @@
1/* $OpenBSD: x509_asid.c,v 1.24 2021/12/24 02:17:27 tb Exp $ */ 1/* $OpenBSD: x509_asid.c,v 1.25 2021/12/24 02:22:16 tb Exp $ */
2/* 2/*
3 * Contributed to the OpenSSL Project by the American Registry for 3 * Contributed to the OpenSSL Project by the American Registry for
4 * Internet Numbers ("ARIN"). 4 * Internet Numbers ("ARIN").
@@ -474,8 +474,6 @@ X509v3_asid_add_id_or_range(ASIdentifiers *asid, int which, ASN1_INTEGER *min,
474static int 474static int
475extract_min_max(ASIdOrRange *aor, ASN1_INTEGER **min, ASN1_INTEGER **max) 475extract_min_max(ASIdOrRange *aor, ASN1_INTEGER **min, ASN1_INTEGER **max)
476{ 476{
477 OPENSSL_assert(aor != NULL);
478
479 switch (aor->type) { 477 switch (aor->type) {
480 case ASIdOrRange_id: 478 case ASIdOrRange_id:
481 *min = aor->u.id; 479 *min = aor->u.id;