diff options
author | tb <> | 2023-06-01 07:29:15 +0000 |
---|---|---|
committer | tb <> | 2023-06-01 07:29:15 +0000 |
commit | cc189c580a85ba75a6ca60bf3d50a3edee8845bd (patch) | |
tree | 204afc29a69c2bca10670d98ef7212652e852472 /src/usr.bin | |
parent | 8d97f6e802c7062366965028c126c73141f3591d (diff) | |
download | openbsd-cc189c580a85ba75a6ca60bf3d50a3edee8845bd.tar.gz openbsd-cc189c580a85ba75a6ca60bf3d50a3edee8845bd.tar.bz2 openbsd-cc189c580a85ba75a6ca60bf3d50a3edee8845bd.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/usr.bin')
0 files changed, 0 insertions, 0 deletions