shared/gatt-server: Fix not properly checking for secure flags
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 2 Mar 2021 19:38:33 +0000 (11:38 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:34 +0000 (19:08 +0530)
commit40fad485ebea8e7443349fca5a0af91e6198e53b
treebb0126f633bd9b4f5a941403b3a266ddf516a49e
parent6525dd368bc4d83364f0d382c28508c77f2f11a9
shared/gatt-server: Fix not properly checking for secure flags

When passing the mask to check_permissions all valid permissions for
the operation must be set including BT_ATT_PERM_SECURE flags.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/shared/att-types.h
src/shared/gatt-server.c