Skip to content

Commit 196a766

Browse files
committed
BLE:Fix gattserver authorization list update permission check
1 parent fe59870 commit 196a766

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ ble_error_t GattServer::insert_characteristic_value_attribute(
385385
// characteristic.
386386
// User defined security authorisation does not impact this flag
387387
if ((attribute_it->permissions & (ATTS_PERMIT_READ_AUTHORIZ | ATTS_PERMIT_WRITE_AUTHORIZ)) ||
388-
(attribute_it->permissions & UPDATE_PROPERTIES) ||
388+
(properties & UPDATE_PROPERTIES) ||
389389
characteristic->isReadAuthorizationEnabled() ||
390390
characteristic->isWriteAuthorizationEnabled()
391391
) {

0 commit comments

Comments
 (0)