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

Commit 4393c68e authored by Android Build Merger (Role)'s avatar Android Build Merger (Role)
Browse files

[automerger] BLE: Don't access freed buffer in log message am: 53a89d92 am:...

[automerger] BLE: Don't access freed buffer in log message am: 53a89d92 am: 21eb7b17 am: 84774598 am: caeb84cd am: 0b104d17 am: 7b01cf63 am: 4c5c4029 am: d38af5d0

Change-Id: Ia5da8d8fa0f9e3d0835b7eb6ec5c52182624dc18
parents f9a8504e d38af5d0
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -336,8 +336,7 @@ tGATT_STATUS attp_send_msg_to_l2cap(tGATT_TCB *p_tcb, BT_HDR *p_toL2CAP)


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