Skip to content

Commit

Permalink
nimble/host: Fix invalid memset in ble_gattc_read_mult_cb_var
Browse files Browse the repository at this point in the history
This commit applies correct value when using memset to fill attr
array. Fixes GATT/CL/GAR/BI-13-C, GATT/CL/GAR/BI-36-C,
GATT/CL/GAR/BI-38-C, GATT/CL/GAR/BI-42-C, GATT/CL/GAR/BI-44-C,
GATT/CL/GAR/BV-05-C
  • Loading branch information
piotrnarajowski authored and andrzej-kaczmarek committed Jun 12, 2024
1 parent 89d6fd6 commit 07ac190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nimble/host/src/ble_gattc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3345,7 +3345,7 @@ ble_gattc_read_mult_cb_var(struct ble_gattc_proc *proc, int status,
return 0;
}

memset(attr, 0, sizeof(*attr));
memset(attr, 0, sizeof(attr));

for (i = 0; i < proc->read_mult.num_handles; i++) {
attr[i].handle = proc->read_mult.handles[i];
Expand Down

0 comments on commit 07ac190

Please sign in to comment.