Diff between ee880bee85864b0e691370197c9de8d2f7ba0af2 and f3c35ed835bda18573e07d02f725be5106ad8ae8

Changed Files

File Additions Deletions Status
emulator/btdev.c +3 -0 modified

Full Patch

diff --git a/emulator/btdev.c b/emulator/btdev.c
index 4c9f5d1..139ab69 100644
--- a/emulator/btdev.c
+++ b/emulator/btdev.c
@@ -1248,6 +1248,9 @@ static void conn_complete(struct btdev *btdev,
 	struct bt_hci_evt_conn_complete cc;
 	struct btdev *remote = find_btdev_by_bdaddr(bdaddr);
 
+	if (!remote)
+		return;
+
 	if (!status) {
 		struct btdev_conn *conn;