diff options
author | tb <> | 2023-06-01 07:29:15 +0000 |
---|---|---|
committer | tb <> | 2023-06-01 07:29:15 +0000 |
commit | db144b29c2c0d748705612fa7cb0ef4ecaa7667d (patch) | |
tree | 204afc29a69c2bca10670d98ef7212652e852472 /src/lib/libc/string/stpcpy.c | |
parent | 15d3c912ab27ed23d29447224f0220efc5eb1044 (diff) | |
download | openbsd-db144b29c2c0d748705612fa7cb0ef4ecaa7667d.tar.gz openbsd-db144b29c2c0d748705612fa7cb0ef4ecaa7667d.tar.bz2 openbsd-db144b29c2c0d748705612fa7cb0ef4ecaa7667d.zip |
Check for X509_get_ext_d2i() failure
X509_get_ext_d2i() (or rather X509V3_get_d2i()) can return NULL for
various reasons. If it fails because the extension wasn't found, it
sets *crit = -1. In any other case, e.g., the cert is bad or we ran
out of memory in X509V3_EXT_d2i(), crit is set to something else, so
we should actually error.
ok jsing
Diffstat (limited to 'src/lib/libc/string/stpcpy.c')
0 files changed, 0 insertions, 0 deletions