Skip to content

Commit 114bc80

Browse files
dssengkartben
authored andcommitted
Bluetooth: ISO: fix hci_le_set_cig_params validation
Sizeof of a pointer doesn't make sense here, and e.g. on native_sim/native/64 this would fail. Signed-off-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
1 parent 3cf5b0c commit 114bc80

File tree

1 file changed

+1
-1
lines changed
  • subsys/bluetooth/host

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/iso.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2191,7 +2191,7 @@ int bt_iso_cig_create(const struct bt_iso_cig_param *param, struct bt_iso_cig **
21912191

21922192
cig_rsp = (void *)rsp->data;
21932193

2194-
if (rsp->len < sizeof(cig_rsp) || cig_rsp->num_handles != param->num_cis) {
2194+
if (rsp->len < sizeof(*cig_rsp) || cig_rsp->num_handles != param->num_cis) {
21952195
LOG_WRN("Unexpected response to hci_le_set_cig_params");
21962196
err = -EIO;
21972197
net_buf_unref(rsp);

0 commit comments

Comments
 (0)