Skip to content

Commit c2b562b

Browse files
committed
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 <[email protected]>
1 parent 1f53b46 commit c2b562b

File tree

1 file changed

+2
-2
lines changed
  • subsys/bluetooth/host

1 file changed

+2
-2
lines changed

subsys/bluetooth/host/smp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,10 +799,10 @@ static bool update_debug_keys_check(struct bt_smp *smp)
799799
}
800800

801801
if (conn->le.keys->flags & BT_KEYS_DEBUG) {
802-
return false;
802+
return true;
803803
}
804804

805-
return true;
805+
return false;
806806
}
807807

808808
#if defined(CONFIG_BT_PRIVACY) || defined(CONFIG_BT_SIGNING) || \

0 commit comments

Comments
 (0)