From 9058ff217368248eba552b8c7b7df533887f7aa3 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 4 Feb 2009 16:19:18 -0800 Subject: Fix invalid local auth type checking --- src/dbus-hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit