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

Commit 4d355187 authored by Mudumba Ananth's avatar Mudumba Ananth Committed by Andre Eisenbach
Browse files

If L2CA_ConnectFixedChnl fails, free L2CAP lcb for the attempted connection

Bug: 16560957
Change-Id: I91fd2cc90435d0b899474b555b4a4ab00306c156
parent 75c0d1f4
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1396,7 +1396,13 @@ BOOLEAN L2CA_ConnectFixedChnl (UINT16 fixed_cid, BD_ADDR rem_bda)
        return (FALSE);
    }

    return (l2cu_create_conn(p_lcb, transport));
    if (!l2cu_create_conn(p_lcb, transport))
    {
        L2CAP_TRACE_WARNING ("L2CA_ConnectFixedChnl create_conn failed");
        l2cu_release_lcb (p_lcb);
        return (FALSE);
    }
    return (TRUE);
}

/*******************************************************************************