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

Commit 8ac11194 authored by Srinu Jella's avatar Srinu Jella Committed by Andre Eisenbach
Browse files

Avoid null pointer exception for invalid L2CAP channels

Change-Id: I8ac40e9cfe6dd015f40c6f493727e123a0d247e6
parent 6823da27
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1024,6 +1024,7 @@ static void l2c_csm_open (tL2C_CCB *p_ccb, UINT16 event, void *p_data)
        break;

    case L2CEVT_L2CAP_DATA:                         /* Peer data packet rcvd    */
        if((p_ccb->p_rcb) && (p_ccb->p_rcb->api.pL2CA_DataInd_Cb))
            (*p_ccb->p_rcb->api.pL2CA_DataInd_Cb)(p_ccb->local_cid, (BT_HDR *)p_data);
        break;