projects
/
platform
/
upstream
/
bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa2e16b
)
adapter: Fix crash issue
86/316786/1
author
Wootak Jung
<wootak.jung@samsung.com>
Thu, 10 Oct 2024 04:29:50 +0000
(13:29 +0900)
committer
Wootak Jung
<wootak.jung@samsung.com>
Tue, 17 Dec 2024 02:08:43 +0000
(11:08 +0900)
Change-Id: Icf5e484ae079c559d90cbd7cbdecfbede9ad6868
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
src/adapter.c
patch
|
blob
|
history
diff --git
a/src/adapter.c
b/src/adapter.c
index 85b5468a2133a7fb8ee2d4b7cbf6ff7c27a146a0..07332c77c4d3cab6c8f4c490118431eb994ac737 100644
(file)
--- a/
src/adapter.c
+++ b/
src/adapter.c
@@
-13799,6
+13799,10
@@
static void multi_adv_state_change_callback(uint16_t index, uint16_t length,
ev->adv_instance, ev->state_change_reason, ev->connection_handle);
adv = find_advertiser(adapter, ev->adv_instance);
+ if (!adv) {
+ DBG("Unable to find advertiser");
+ return;
+ }
DBG("current advertising status %d", adv->status);
if ((ev->adv_instance > 0 && ev->adv_instance < adapter_le_get_max_adv_instance()) &&