From bbcd887764ff284049944b483fad8e5dbc94d02a Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 19 Sep 2014 15:51:15 +0300 Subject: [PATCH] emulator/bthost: Fix setting new encryption mode for failure status --- emulator/bthost.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/emulator/bthost.c b/emulator/bthost.c index 439691b0f..a15aab0cb 100644 --- a/emulator/bthost.c +++ b/emulator/bthost.c @@ -975,6 +975,9 @@ static void evt_encrypt_change(struct bthost *bthost, const void *data, if (!conn) return; + if (ev->status) + return; + conn->encr_mode = ev->encr_mode; } -- 2.47.3