Bluetooth: host: Fix update keys when using debug public key check

Fix the update keys check allowing to overwrite the keys when using
debug keys. Instead the check disallowed overwriting keys made using
debug keys.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2020-12-16 14:31:41 +01:00 committed by Anas Nashif
parent abd470cbe6
commit 2f588f946f

View file

@ -799,10 +799,10 @@ static bool update_debug_keys_check(struct bt_smp *smp)
}
if (conn->le.keys->flags & BT_KEYS_DEBUG) {
return false;
return true;
}
return true;
return false;
}
#if defined(CONFIG_BT_PRIVACY) || defined(CONFIG_BT_SIGNING) || \