Diff between af6855c6c25e15e647c91a8298c279b4a7457303 and f3e175bd7884c7c84b68b7167d5e4dc805d374c5
Changed Files
| File | Additions | Deletions | Status |
| attrib/gatt-service.c | +1 | -1 | modified |
Full Patch
diff --git a/attrib/gatt-service.c b/attrib/gatt-service.c
index 4b02d39..1b84c89 100644
--- a/attrib/gatt-service.c
+++ b/attrib/gatt-service.c
@@ -341,7 +341,7 @@ gboolean gatt_service_add(struct btd_adapter *adapter, uint16_t uuid,
}
g_assert(size < USHRT_MAX);
- g_assert(h - start_handle == (uint16_t) size);
+ g_assert(h == 0 || (h - start_handle == (uint16_t) size));
g_slist_free_full(chrs, free_gatt_info);
return TRUE;