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/device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/device.h') diff --git a/src/device.h b/src/device.h index f3a5cea0..6b750a82 100644 --- a/src/device.h +++ b/src/device.h @@ -68,7 +68,7 @@ gboolean device_is_bonding(struct btd_device *device, const char *sender); void device_cancel_bonding(struct btd_device *device, uint8_t status); int device_request_authentication(struct btd_device *device, auth_type_t type, uint32_t passkey, void *cb); -void device_cancel_authentication(struct btd_device *device); +void device_cancel_authentication(struct btd_device *device, gboolean aborted); gboolean device_is_authenticating(struct btd_device *device); void device_set_renewed_key(struct btd_device *device, gboolean renewed); void device_add_connection(struct btd_device *device, DBusConnection *conn, -- cgit