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

Commit dab42391 authored by Joseph Pirozzo's avatar Joseph Pirozzo Committed by Andre Eisenbach
Browse files

L2CAP: Ensure handle is not null before attempting to close a socket

Bug: 32054308
Test: manual, UPF 55
Change-Id: Ib89f7557fa390d60691afe8399a768e8127e52cb
(cherry picked from commit a1fa1bb0d638d5f444bf959fb839e824d69de31d)
parent bd703cfe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -276,7 +276,7 @@ static void btsock_l2cap_free_l(l2cap_socket *sock)
    else
    {
        // Only call if we are non server connections
        if (sock->handle && (sock->server == false)) {
        if ((sock->handle >= 0) && (sock->server == false)) {
            if (sock->fixed_chan)
                BTA_JvL2capCloseLE(sock->handle);
            else