summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509v3/ext_dat.h
diff options
context:
space:
mode:
authortb <>2019-04-16 19:42:20 +0000
committertb <>2019-04-16 19:42:20 +0000
commit8db0fb09968c8b153cd6c30bdff10ee3a4d5a71f (patch)
tree1025850163b28cfb6b4313d66b80f391d58496e6 /src/lib/libcrypto/x509v3/ext_dat.h
parent37f8724cb7f0a2c25fa9cef57235cf2a839e25f3 (diff)
downloadopenbsd-8db0fb09968c8b153cd6c30bdff10ee3a4d5a71f.tar.gz
openbsd-8db0fb09968c8b153cd6c30bdff10ee3a4d5a71f.tar.bz2
openbsd-8db0fb09968c8b153cd6c30bdff10ee3a4d5a71f.zip
Rewrite & fix X509V3_add_value()
X509V3_add_value() helpfully allocates a STACK_OF(CONF_VALUE) if it receives a pointer to a NULL pointer. If anything fails along the way, it is however the caller's responsibility to free it. This can easily be fixed by freeing *extlist in the error path and zeroing it to avoid a double free if there happens to be a caller out there that avoids the leak. Polish a few things so the function conforms a bit better to our usual style. tweak & ok jsing
Diffstat (limited to 'src/lib/libcrypto/x509v3/ext_dat.h')
0 files changed, 0 insertions, 0 deletions