summaryrefslogtreecommitdiff
path: root/src/lib/libc
diff options
context:
space:
mode:
authortb <>2021-11-06 12:31:40 +0000
committertb <>2021-11-06 12:31:40 +0000
commitf01f56497c4c06d0958a4016fdb914ec1d2d496c (patch)
treeecb526e27f4bb483191cc3b3ab9743f35b52f8ec /src/lib/libc
parentf7a941809fd72aa44a2d525fb2e61ee97b2b3d7c (diff)
downloadopenbsd-f01f56497c4c06d0958a4016fdb914ec1d2d496c.tar.gz
openbsd-f01f56497c4c06d0958a4016fdb914ec1d2d496c.tar.bz2
openbsd-f01f56497c4c06d0958a4016fdb914ec1d2d496c.zip
Start cleaning up X509_STORE_get1_issuer()
Get rid of the last X509_OBJECT_free_contents() call by moving the object from the stack to the heap. I deliberately kept the obj variable to keep obj and pobj separate. Rename the out parameter from issuer to out_issuer to ensure that we only assign it when we have acquired a reference that we can return. Add a new X509 *issuer. In the first part of the function, acquire an extra reference before check_issuer/check_time. In the second part of the function, acquire a reference inside the lock to avoid a race. Deal with ret only in one place. ok jsing
Diffstat (limited to 'src/lib/libc')
0 files changed, 0 insertions, 0 deletions