From: Luiz Augusto von Dentz Date: Wed, 10 Nov 2021 22:10:53 +0000 (-0800) Subject: shared/gatt-client: Skip included service if it cannot be resolved X-Git-Tag: submit/tizen/20220313.220938~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=509229180b760679426192369831a778b3bb0dd2;p=platform%2Fupstream%2Fbluez.git shared/gatt-client: Skip included service if it cannot be resolved Instead of failing if the included service cannot be resolved just skip it so doesn't fail and the discovery is stop due to a possible application error. Signed-off-by: Anuj Jain Signed-off-by: Ayush Garg --- diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c index f5f336a1..40c074a3 100644 --- a/src/shared/gatt-client.c +++ b/src/shared/gatt-client.c @@ -626,8 +626,9 @@ static void discover_incl_cb(bool success, uint8_t att_ecode, attr = gatt_db_get_attribute(client->db, start); if (!attr) { util_debug(client->debug_callback, client->debug_data, - "Unable to find attribute at 0x%04x", start); - goto failed; + "Unable to find attribute at 0x%04x: skipping", + start); + continue; } attr = gatt_db_insert_included(client->db, handle, attr);