diff options
author | 2019-04-16 19:42:20 +0000 | |
---|---|---|
committer | 2019-04-16 19:42:20 +0000 | |
commit | ec01370d5fc712d5b25caa6e01c1cfdb040a0fd0 (patch) | |
tree | 386cacdb8a7691fc84e8410659fb85babc3cde68 /sys/net/if_mpe.c | |
parent | indent err: labels (diff) | |
download | wireguard-openbsd-ec01370d5fc712d5b25caa6e01c1cfdb040a0fd0.tar.xz wireguard-openbsd-ec01370d5fc712d5b25caa6e01c1cfdb040a0fd0.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 'sys/net/if_mpe.c')
0 files changed, 0 insertions, 0 deletions