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:
3ff738b
)
monitor: Fix crash when there is no write handler
author
Simon Mikuda
<simon.mikuda@streamunlimited.com>
Thu, 23 Mar 2023 10:28:57 +0000
(11:28 +0100)
committer
Ayush Garg
<ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:41:34 +0000
(16:11 +0530)
monitor/att.c
patch
|
blob
|
history
diff --git
a/monitor/att.c
b/monitor/att.c
index
313ac91
..
cd319cf
100644
(file)
--- a/
monitor/att.c
+++ b/
monitor/att.c
@@
-2945,7
+2945,7
@@
static void print_write(const struct l2cap_frame *frame, uint16_t handle,
return;
handler = get_handler(attr);
- if (!handler)
+ if (!handler
|| !handler->write
)
return;
handler->write(frame);