Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
system_bt
Commits
171c14ea
Commit
171c14ea
authored
8 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Download
Plain Diff
Merge "L2CAP: Ensure handle is not null before attempting to close a socket"
parents
763abdfe
984e31a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
btif/src/btif_sock_l2cap.cc
btif/src/btif_sock_l2cap.cc
+1
-1
No files found.
btif/src/btif_sock_l2cap.cc
View file @
171c14ea
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment