summaryrefslogtreecommitdiff
path: root/emulator/btdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'emulator/btdev.c')
-rw-r--r--emulator/btdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/emulator/btdev.c b/emulator/btdev.c
index ccfaed36b..ae27ce613 100644
--- a/emulator/btdev.c
+++ b/emulator/btdev.c
@@ -5860,7 +5860,7 @@ static void le_cis_estabilished(struct btdev *dev, struct btdev_conn *conn,
memset(&evt, 0, sizeof(evt));
evt.status = status;
- evt.conn_handle = cpu_to_le16(conn->handle);
+ evt.conn_handle = conn ? cpu_to_le16(conn->handle) : 0x0000;
if (!evt.status) {
struct btdev *remote = conn->link->dev;