Diff between a554a39dda57baac8691217f2ed4f0aa8ed6b5c7 and 5c1660358f6349c71d1229adcb052dfcb02c0e7d

Changed Files

File Additions Deletions Status
src/shared/gatt-client.c +3 -0 modified

Full Patch

diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c
index a34b001..4b3f553 100644
--- a/src/shared/gatt-client.c
+++ b/src/shared/gatt-client.c
@@ -141,6 +141,9 @@ static struct request *request_create(struct bt_gatt_client *client)
 {
 	struct request *req;
 
+	if (!client->att)
+		return NULL;
+
 	req = new0(struct request, 1);
 
 	if (client->next_request_id < 1)