]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Don't send public key if OOB data verification fails
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 16 Mar 2015 16:12:57 +0000 (18:12 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 16 Mar 2015 16:17:38 +0000 (17:17 +0100)
commita21b9bf727ffbc2d9b4174344ae9953e4d0bb1ec
tree00b6783816e50b091bb6144525ee1f77a60be0ed
parentb38fef57023fa753b8e66faf4b92eb461a133a7e
Bluetooth: Don't send public key if OOB data verification fails

When we receive the remote public key, if we have remote OOB data
there's no point in sending our public key to the remote if the OOB data
doesn't match. This patch moves the test for this higher up in the
smp_cmd_public_key() function.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/smp.c