diff options
author | tb <> | 2021-12-24 02:28:52 +0000 |
---|---|---|
committer | tb <> | 2021-12-24 02:28:52 +0000 |
commit | cff474799d36b37cdb84fdff7387665a63df7c03 (patch) | |
tree | 778069e79be000145d87406253a74eeacad7e404 /src/lib/libc | |
parent | 590db753358a3347436824299d28c2b7b7f2df2b (diff) | |
download | openbsd-cff474799d36b37cdb84fdff7387665a63df7c03.tar.gz openbsd-cff474799d36b37cdb84fdff7387665a63df7c03.tar.bz2 openbsd-cff474799d36b37cdb84fdff7387665a63df7c03.zip |
Remove asserts from asid_validate_path_internal()
The first asserts ensure that things checked in the callers hold true.
Turn them into error checks and set the error on the X509_STORE_CTX
if it's present. Checking sk_value(..., i) with i < sk_num(...) isn't
useful, particularly if that check is done via an assert. Turn one
remaining assert into a NULL check. Finally, simplify the sk_num()
checks in the callers.
ok jsing
Diffstat (limited to 'src/lib/libc')
0 files changed, 0 insertions, 0 deletions