Diff between da16db5af6f5f07ae48d128eace9f528586f965a and 2f1ea3485bb802a8ffa5f3d3a16d8f34dbd11f42

Changed Files

File Additions Deletions Status
android/gatt.c +6 -2 modified

Full Patch

diff --git a/android/gatt.c b/android/gatt.c
index 3019cd5..04972a4 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -2093,9 +2093,13 @@ static void handle_client_search_service(const void *buf, uint16_t len)
 		}
 	} else {
 		/* Refresh service cache if only partial search was performed */
-		if (conn->device->partial_srvc_search)
+		if (conn->device->partial_srvc_search) {
 			srvc_search_success = search_dev_for_srvc(conn, NULL);
-		else
+			if (!srvc_search_success) {
+				status = HAL_STATUS_FAILED;
+				goto reply;
+			}
+		} else
 			queue_foreach(conn->device->services,
 						send_client_primary_notify,
 						INT_TO_PTR(cmd->conn_id));