Skip to content

Commit 1ec44b6

Browse files
finikorgnashif
authored andcommitted
bluetooth: Fix using size instead of len
Fix using wrong field. Signed-off-by: Andrei Emeltchenko <[email protected]>
1 parent 59325d1 commit 1ec44b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/audio/bap_scan_delegator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ static int scan_delegator_mod_src(struct bt_conn *conn,
855855

856856
/* subtract 1 as the opcode has already been pulled */
857857
if (buf->len < sizeof(struct bt_bap_bass_cp_mod_src) - 1) {
858-
LOG_DBG("Invalid length %u", buf->size);
858+
LOG_DBG("Invalid length %u", buf->len);
859859

860860
return BT_GATT_ERR(BT_ATT_ERR_INVALID_ATTRIBUTE_LEN);
861861
}

0 commit comments

Comments
 (0)