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

Commit 9fa108e2 authored by Myles Watson's avatar Myles Watson
Browse files

btif: Return after closing the socket

Bug: 175686168
Test: poc in bug
Tag: #security
Change-Id: I3af19be9bee9535e67e4dcbc2584d2084656b817
Merged-In: I3af19be9bee9535e67e4dcbc2584d2084656b817
parent faa2aa19
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -719,6 +719,7 @@ static void on_l2cap_data_ind(tBTA_JV* evt, uint32_t id) {
               << ": unable to push data to socket - closing  fixed channel";
      BTA_JvL2capCloseLE(sock->handle);
      btsock_l2cap_free_l(sock);
      return;
    }

  } else {
@@ -737,6 +738,7 @@ static void on_l2cap_data_ind(tBTA_JV* evt, uint32_t id) {
                   << ": unable to push data to socket - closing channel";
          BTA_JvL2capClose(sock->handle);
          btsock_l2cap_free_l(sock);
          return;
        }
      }
    }