From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> CCC shall always have some permission set. --- src/shared/gatt-db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/gatt-db.c b/src/shared/gatt-db.c index d3b5cec1da86..32cbf6cdc38b 100644 --- a/src/shared/gatt-db.c +++ b/src/shared/gatt-db.c @@ -1066,7 +1066,7 @@ gatt_db_service_add_ccc(struct gatt_db_attribute *attrib, uint32_t permissions) struct gatt_db_attribute *value; uint16_t handle = 0; - if (!attrib) + if (!attrib || !permissions) return NULL; db = attrib->service->db; -- 2.37.3