diff options
author | tb <> | 2019-04-16 19:42:20 +0000 |
---|---|---|
committer | tb <> | 2019-04-16 19:42:20 +0000 |
commit | b8cc32538c2000feb26f373a1f1a38d20920bb8f (patch) | |
tree | 1025850163b28cfb6b4313d66b80f391d58496e6 /src/lib/libssl | |
parent | 1791b8c591387b6d7674fdbf93bc073e4a427272 (diff) | |
download | openbsd-b8cc32538c2000feb26f373a1f1a38d20920bb8f.tar.gz openbsd-b8cc32538c2000feb26f373a1f1a38d20920bb8f.tar.bz2 openbsd-b8cc32538c2000feb26f373a1f1a38d20920bb8f.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/libssl')
0 files changed, 0 insertions, 0 deletions