Bluetooth: Add check for accidentally generating a debug key
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 6 Jun 2014 12:33:30 +0000 (15:33 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 3 Dec 2014 15:51:18 +0000 (16:51 +0100)
commit6c0dcc5014caeb9c39db816a7e0169255923ccba
treef7d796382de99f7e7f80c320d2c51b6ac4c113df
parentaeb7d461f9c895bb6d09e9d175696849e9f290c8
Bluetooth: Add check for accidentally generating a debug key

It is very unlikely, but to have a 100% guarantee of the generated key
type we need to reject any keys which happen to match the debug key.

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