diff options
author | tb <> | 2021-12-24 02:07:37 +0000 |
---|---|---|
committer | tb <> | 2021-12-24 02:07:37 +0000 |
commit | eb90e56d8fe112f145d3661057d6bc4d40d45aec (patch) | |
tree | 486a3c1e9cdd5eda8bb7752ed8f70b9da59cb8fa /src | |
parent | dc9f42fbb6d666d3d47d6976836ce81ed7674d8f (diff) | |
download | openbsd-eb90e56d8fe112f145d3661057d6bc4d40d45aec.tar.gz openbsd-eb90e56d8fe112f145d3661057d6bc4d40d45aec.tar.bz2 openbsd-eb90e56d8fe112f145d3661057d6bc4d40d45aec.zip |
Remove assert from extract_min_max()
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.c | 4 |
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 3e6f025232..808dad7552 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.21 2021/12/24 02:04:00 tb Exp $ */ | 1 | /* $OpenBSD: x509_asid.c,v 1.22 2021/12/24 02:07:37 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, | |||
474 | static int | 474 | static int |
475 | extract_min_max(ASIdOrRange *aor, ASN1_INTEGER **min, ASN1_INTEGER **max) | 475 | extract_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; |