summaryrefslogtreecommitdiff
path: root/emulator
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-05-13 09:43:36 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-05-13 13:26:13 -0700
commit022eda58e157b10550cd8526210316e6448a071d (patch)
treeb1fe324837e044d36dfd5340a20bff7f25059df3 /emulator
parent4e7780d0eb9482d6ba265c15bb6fb6ea86881b88 (diff)
downloadbluez-022eda58e157b10550cd8526210316e6448a071d.tar.gz
btdev: Fix crashing if ISO link is in fact a BIS
BIS doesn't not have necessarily needs a link if there is no sync in place.
Diffstat (limited to 'emulator')
-rw-r--r--emulator/btdev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/emulator/btdev.c b/emulator/btdev.c
index 20b482cee..50407d9a2 100644
--- a/emulator/btdev.c
+++ b/emulator/btdev.c
@@ -5579,7 +5579,8 @@ static void send_iso(struct btdev *dev, const void *data, uint16_t len)
num_completed_packets(dev, conn->handle);
- send_packet(conn->link->dev, iov, 2);
+ if (conn->link)
+ send_packet(conn->link->dev, iov, 2);
}
void btdev_receive_h4(struct btdev *btdev, const void *data, uint16_t len)