Commit 171c14ea 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 763abdfe 984e31a7
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment