summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/srand48.c
diff options
context:
space:
mode:
authortb <>2023-06-01 07:29:15 +0000
committertb <>2023-06-01 07:29:15 +0000
commitdb144b29c2c0d748705612fa7cb0ef4ecaa7667d (patch)
tree204afc29a69c2bca10670d98ef7212652e852472 /src/lib/libc/stdlib/srand48.c
parent15d3c912ab27ed23d29447224f0220efc5eb1044 (diff)
downloadopenbsd-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/stdlib/srand48.c')
0 files changed, 0 insertions, 0 deletions