summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-02-04 16:19:18 -0800
committerJohan Hedberg <johan.hedberg@nokia.com>2009-02-04 16:19:18 -0800
commit9058ff217368248eba552b8c7b7df533887f7aa3 (patch)
tree02e094966a9a28ae93f0f79f9f21998595b2738f
parent6e12d670f826f754063e0412a47f2e9d557ffc4d (diff)
Fix invalid local auth type checking
-rw-r--r--src/dbus-hci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c
index 7c3667f8..49af9ba6 100644
--- a/src/dbus-hci.c
+++ b/src/dbus-hci.c
@@ -346,7 +346,7 @@ int hcid_dbus_user_confirm(bdaddr_t *sba, bdaddr_t *dba, uint32_t passkey)
debug("remote authentication requirement is 0x%02x", remauth);
/* If no side requires MITM protection; auto-accept */
- if (!(remauth & 0x01) && (!(type & 0x01) || remcap == 0x03)) {
+ if (!(remauth & 0x01) && (type == 0xff || !(type & 0x01) || remcap == 0x03)) {
int dd;
dd = hci_open_dev(dev_id);