summaryrefslogtreecommitdiffstats
path: root/src/adapter.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-02-03 11:18:22 -0800
committerJohan Hedberg <johan.hedberg@nokia.com>2009-02-03 11:20:01 -0800
commitf7d1ee361e410e096929bd3918178af356c50bbd (patch)
treeb6360e73aea8397c0e06120a2306c2bd7278d671 /src/adapter.c
parent38ca09be34dbb514fa1194b9a164d1b63a74069b (diff)
Fix authentication replies when disconnected
This patch makes sure that we don't reply to the authentiction requests if we get disconnected before authentication has completed.
Diffstat (limited to 'src/adapter.c')
-rw-r--r--src/adapter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/adapter.c b/src/adapter.c
index ca41be7f..3239e9a1 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -2683,7 +2683,7 @@ void adapter_remove_connection(struct btd_adapter *adapter,
hci_req_queue_remove(adapter->dev_id, &bdaddr);
if (device_is_authenticating(device))
- device_cancel_authentication(device);
+ device_cancel_authentication(device, TRUE);
if (device_is_temporary(device)) {
const char *path = device_get_path(device);