Commit 2f588f94 authored by Joakim Andersson's avatar Joakim Andersson Committed by Anas Nashif
Browse files

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: default avatarJoakim Andersson <joakim.andersson@nordicsemi.no>
parent abd470cb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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) || \