OSDN Git Service
(root)
/
android-x86
/
system-bt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b5ed73
)
Fix invalid iterator access in GATTS_StopService
author
Chienyuan
<chienyuanhuang@google.com>
Wed, 30 Jan 2019 07:57:19 +0000
(15:57 +0800)
committer
Chienyuan
<chienyuanhuang@google.com>
Wed, 30 Jan 2019 07:57:19 +0000
(15:57 +0800)
Bug:
113575306
Test: manual
Change-Id: I2360b187ed10617ddd08e61db1689d631a89767d
stack/gatt/gatt_api.cc
patch
|
blob
|
history
diff --git
a/stack/gatt/gatt_api.cc
b/stack/gatt/gatt_api.cc
index
e8a1b0d
..
3d37a6b
100644
(file)
--- a/
stack/gatt/gatt_api.cc
+++ b/
stack/gatt/gatt_api.cc
@@
-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) {