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

Commit 77698719 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by Android (Google) Code Review
Browse files

Merge "BLE: Don't access freed buffer in log message" into oc-dev

parents 2d40f62b f547c2fa
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -330,8 +330,7 @@ tGATT_STATUS attp_send_msg_to_l2cap(tGATT_TCB* p_tcb, BT_HDR* p_toL2CAP) {
    l2cap_ret = (uint16_t)L2CA_DataWrite(p_tcb->att_lcid, p_toL2CAP);

  if (l2cap_ret == L2CAP_DW_FAILED) {
    GATT_TRACE_ERROR("ATT   failed to pass msg:0x%0x to L2CAP",
                     *((uint8_t*)(p_toL2CAP + 1) + p_toL2CAP->offset));
    GATT_TRACE_ERROR("ATT failed to pass msg to L2CAP");
    return GATT_INTERNAL_ERROR;
  } else if (l2cap_ret == L2CAP_DW_CONGESTED) {
    GATT_TRACE_DEBUG("ATT congested, message accepted");