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

Commit ae930281 authored by Richard Smith's avatar Richard Smith Committed by Jakub Pawlowski
Browse files

GATT: initialize the notif completely

Bug: 180418662
Change-Id: I71c1c2038b62c554490d38fdb0febf1217108992
parent 866f710d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -514,6 +514,7 @@ tGATT_STATUS GATTS_HandleValueNotification(uint16_t conn_id,
    return GATT_ILLEGAL_PARAMETER;
  }

  memset(&notif, 0, sizeof(notif));
  notif.handle = attr_handle;
  notif.len = val_len;
  memcpy(notif.value, p_val, val_len);