From 49c70322815c87fa7479937d7592eb37f8fd32a3 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Mon, 10 Nov 2014 11:10:00 +0200 Subject: [PATCH] android/gatt: Fix incorrect attribute check --- android/gatt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/gatt.c b/android/gatt.c index 2fad5ee58..086bb94d3 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -4311,7 +4311,7 @@ static void handle_server_add_included_service(const void *buf, uint16_t len) } include = gatt_db_get_attribute(gatt_db, cmd->included_handle); - if (!service) { + if (!include) { status = HAL_STATUS_FAILED; goto failed; } -- 2.47.3