diff options
author | tb <> | 2023-06-20 14:05:46 +0000 |
---|---|---|
committer | tb <> | 2023-06-20 14:05:46 +0000 |
commit | e8ccdf253cfa0ff21ced6e923e65faaafc0f0e50 (patch) | |
tree | 9c7178cba5b0888774913e389b25c805ca5747cd /src/lib/libc/stdlib/getenv.c | |
parent | 6b6b8b595460a702a94328314232c8cc0f254a13 (diff) | |
download | openbsd-e8ccdf253cfa0ff21ced6e923e65faaafc0f0e50.tar.gz openbsd-e8ccdf253cfa0ff21ced6e923e65faaafc0f0e50.tar.bz2 openbsd-e8ccdf253cfa0ff21ced6e923e65faaafc0f0e50.zip |
Clean up EVP_PKEY_CTX_meth_dup()
Explicitly check against NULL, replace malloc() plus manual zeroing with
calloc(). Use EVP_PKEY_up_ref() rather than handrolling it and use a more
normal error idiom.
There still seems to be a bug in here in that the ENGINE's refcount isn't
bumped, but that will be investigated and fixed separately.
ok jsing
Diffstat (limited to 'src/lib/libc/stdlib/getenv.c')
0 files changed, 0 insertions, 0 deletions