Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 90985621 authored by Abhishek Pandit-Subedi's avatar Abhishek Pandit-Subedi Committed by Jakub Pawlowski
Browse files

gatt: init GATT_CLCB to zero

alarm_set_internal was segfaulting due to invalid memory since it never
init the timer correctly.

Bug: 257046947
Tag: #floss
Test: Automated LE connection tests on ChromeOS
Merged-In: Ide3b429e06bfda3785cff1576319e938d0aa29cd
Change-Id: Ide3b429e06bfda3785cff1576319e938d0aa29cd
parent 7d39416c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -977,7 +977,7 @@ bool gatt_tcb_is_cid_busy(tGATT_TCB& tcb, uint16_t cid) {
 *
 ******************************************************************************/
tGATT_CLCB* gatt_clcb_alloc(uint16_t conn_id) {
  tGATT_CLCB clcb;
  tGATT_CLCB clcb = {};
  tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id);
  uint8_t tcb_idx = GATT_GET_TCB_IDX(conn_id);
  tGATT_TCB* p_tcb = gatt_get_tcb_by_idx(tcb_idx);