aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/smp.c
diff options
context:
space:
mode:
authorTudor Ambarus <tudor.ambarus@microchip.com>2017-09-28 17:14:54 +0300
committerMarcel Holtmann <marcel@holtmann.org>2017-10-06 20:35:47 +0200
commit168ed65483a1777c2570f4c0a4a64e20a823cf25 (patch)
treef172be688f1c1b396c8646dcf0c604c86a7cb0ec /net/bluetooth/smp.c
parentBluetooth: selftest - check for errors when computing ZZ (diff)
downloadlinux-dev-168ed65483a1777c2570f4c0a4a64e20a823cf25.tar.xz
linux-dev-168ed65483a1777c2570f4c0a4a64e20a823cf25.zip
Bluetooth: ecdh_helper - fix leak of private key
tmp buffer contains the swapped private key. In case the setkey call failed, the tmp buffer was freed without clearing the private key. Zeroize the temporary buffer so we don't leak the private key. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/smp.c')
0 files changed, 0 insertions, 0 deletions