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

Commit 07fe29dc authored by Hansong Zhang's avatar Hansong Zhang
Browse files

L2cap link: Fix a potential nullptr exception

Bug: 141555841
Test: cert/run --host
Tag: #gd-refactor
Change-Id: I1550b750438364fa54d961d529e642c2beddb963
parent 8be847b0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -211,8 +211,8 @@ std::shared_ptr<l2cap::internal::DynamicChannelImpl> Link::AllocateDynamicChanne
  auto channel = dynamic_channel_allocator_.AllocateChannel(psm, remote_cid);
  if (channel != nullptr) {
    RefreshRefCount();
  }
    channel->local_initiated_ = false;
  }
  return channel;
}