Diff between f072c7573b760154c8c76c2ef31744d3b73333d6 and 3c08f447152c9ef0e973efab36cc69cf63059038

Changed Files

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

Full Patch

diff --git a/emulator/bthost.c b/emulator/bthost.c
index 0dd7c67..fc1d810 100644
--- a/emulator/bthost.c
+++ b/emulator/bthost.c
@@ -691,6 +691,9 @@ static void evt_auth_complete(struct bthost *bthost, const void *data,
 	if (len < sizeof(*ev))
 		return;
 
+	if (ev->status)
+		return;
+
 	cp.handle = ev->handle;
 	cp.encr_mode = 0x01;