From 7dbe5dcf89e09dac3298d816afe145df63a6034e Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 31 May 2016 19:14:25 +0200 Subject: [PATCH] sm: release setup context after sending LTK negative reply --- src/ble/sm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ble/sm.c b/src/ble/sm.c index b0a6f7c47..8290f8c23 100644 --- a/src/ble/sm.c +++ b/src/ble/sm.c @@ -2034,6 +2034,7 @@ static void sm_run(void){ case SM_RESPONDER_PH0_SEND_LTK_REQUESTED_NEGATIVE_REPLY: connection->sm_engine_state = SM_RESPONDER_IDLE; hci_send_cmd(&hci_le_long_term_key_negative_reply, connection->sm_handle); + sm_done_for_handle(connection->sm_handle); return; #ifdef ENABLE_LE_SECURE_CONNECTIONS