From f7d1ee361e410e096929bd3918178af356c50bbd Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 3 Feb 2009 11:18:22 -0800 Subject: 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. --- src/adapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/adapter.c') 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); -- cgit