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

Commit 5c34433b authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents e31c04df dab42391
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