diff options
author | 2018-06-14 17:14:12 +0000 | |
---|---|---|
committer | 2018-06-14 17:14:12 +0000 | |
commit | 011d7b9edaa43a1f2f03a611f194f512e0607d0c (patch) | |
tree | c74ce55a834541456ceeb4511fcc7548eab4bc90 /sys/kern/tty.c | |
parent | Call DSA_SIG_new() instead of hand rolling the same. (diff) | |
download | wireguard-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/tty.c')
0 files changed, 0 insertions, 0 deletions