From 661c03710862830a28478ab0c460f12aaec457bf Mon Sep 17 00:00:00 2001
From: "Dmitriy A. Gerasimov" <dmitriy.gerasimov@demlabs.net>
Date: Mon, 25 Jan 2021 21:57:39 +0700
Subject: [PATCH] [+] block size fix

---
 dap-sdk/net/client/dap_client_pvt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dap-sdk/net/client/dap_client_pvt.c b/dap-sdk/net/client/dap_client_pvt.c
index 5055d7fb7a..9b7ed2e14a 100644
--- a/dap-sdk/net/client/dap_client_pvt.c
+++ b/dap-sdk/net/client/dap_client_pvt.c
@@ -888,7 +888,7 @@ static void s_enc_init_response(dap_client_t * a_client, void * a_response, size
             l_client_pvt->session_key = dap_enc_key_new_generate(l_client_pvt->session_key_type,
                     l_client_pvt->session_key_open->priv_key_data, // shared key
                     l_client_pvt->session_key_open->priv_key_data_size,
-                    l_client_pvt->session_key_id, strlen(l_client_pvt->session_key_id), 0);
+                    l_client_pvt->session_key_id, strlen(l_client_pvt->session_key_id), l_client_pvt->session_key_block_size);
 
             DAP_DELETE(l_bob_message);
             if(l_client_pvt->stage == STAGE_ENC_INIT) { // We are in proper stage
-- 
GitLab