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

Commit 37929260 authored by Chienyuan's avatar Chienyuan
Browse files

Fix invalid iterator access in GATTS_StopService

Bug: 113575306
Test: manual
Change-Id: I2360b187ed10617ddd08e61db1689d631a89767d
parent 6911fe60
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -382,6 +382,7 @@ void GATTS_StopService(uint16_t service_handle) {
  if (it == gatt_cb.srv_list_info->end()) {
    LOG(ERROR) << __func__ << ": service_handle=" << loghex(service_handle)
               << " is not in use";
    return;
  }

  if (it->sdp_handle) {