diff options
author | tb <> | 2023-06-20 14:05:46 +0000 |
---|---|---|
committer | tb <> | 2023-06-20 14:05:46 +0000 |
commit | 7e9aa9b921436192a2dfffb1472dc4cf7bdac626 (patch) | |
tree | 9c7178cba5b0888774913e389b25c805ca5747cd /src/lib/libc/stdlib | |
parent | cb8959e259654169680279caacdcd5f5d8066e95 (diff) | |
download | openbsd-7e9aa9b921436192a2dfffb1472dc4cf7bdac626.tar.gz openbsd-7e9aa9b921436192a2dfffb1472dc4cf7bdac626.tar.bz2 openbsd-7e9aa9b921436192a2dfffb1472dc4cf7bdac626.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')
0 files changed, 0 insertions, 0 deletions