diff options
author | Simon Mikuda <simon.mikuda@streamunlimited.com> | 2023-03-23 11:28:57 +0100 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-03-23 13:48:07 -0700 |
commit | 446e13360dbaa95fd3912ebb9ca734ccb17d7a32 (patch) | |
tree | bf59e2bd33705c1f11b30356849009e69a249877 /monitor | |
parent | 338ba4352b6cadafe61808c21302c0abe2168e02 (diff) | |
download | bluez-446e13360dbaa95fd3912ebb9ca734ccb17d7a32.tar.gz |
monitor: Fix crash when there is no write handler
Diffstat (limited to 'monitor')
-rw-r--r-- | monitor/att.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor/att.c b/monitor/att.c index f9643b333..d3b82074f 100644 --- a/monitor/att.c +++ b/monitor/att.c @@ -2946,7 +2946,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); |