Message ID | 20220921214656.2241730-2-luiz.dentz@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 50782b0eeb05fd0420f3e9c7686eb792f4fb4689 |
Headers | show |
Series | [BlueZ,1/3] gatt: Fix not setting permissions for CCC | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
tedd_an/checkpatch | success | Checkpatch PASS |
tedd_an/gitlint | success | Gitlint PASS |
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;
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> CCC shall always have some permission set. --- src/shared/gatt-db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)