summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2018-06-14 17:14:12 +0000
committerjsing <jsing@openbsd.org>2018-06-14 17:14:12 +0000
commit011d7b9edaa43a1f2f03a611f194f512e0607d0c (patch)
treec74ce55a834541456ceeb4511fcc7548eab4bc90 /sys/kern
parentCall DSA_SIG_new() instead of hand rolling the same. (diff)
downloadwireguard-openbsd-011d7b9edaa43a1f2f03a611f194f512e0607d0c.tar.xz
wireguard-openbsd-011d7b9edaa43a1f2f03a611f194f512e0607d0c.zip
Fix a potential leak/incorrect return value in DSA signature generation.
In the very unlikely case where we have to repeat the signature generation, the DSA_SIG return value has already been allocated. This will either result in a leak when we allocate again on the next iteration, or it will give a false success (with missing signature values) if any error occurs on the next iteration. ok tb@
Diffstat (limited to 'sys/kern')
0 files changed, 0 insertions, 0 deletions