From 6627a859a67525d46fce09354618773183b484ed Mon Sep 17 00:00:00 2001 From: Dmtiriy Gerasimov <naeper@demlabs.net> Date: Sun, 12 May 2019 17:06:07 +0700 Subject: [PATCH] [*] Fixed bug with priv_data->priv_data_size mix --- dap_chain_cert_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dap_chain_cert_file.c b/dap_chain_cert_file.c index c7e8c2e..a353830 100755 --- a/dap_chain_cert_file.c +++ b/dap_chain_cert_file.c @@ -77,7 +77,7 @@ uint8_t* dap_chain_cert_mem_save(dap_chain_cert_t * a_cert, uint32_t *a_cert_siz dap_enc_key_t * l_key = a_cert->enc_key; uint8_t *l_data = NULL; - size_t l_priv_key_data_size = a_cert->enc_key->priv_key_data, + size_t l_priv_key_data_size = a_cert->enc_key->priv_key_data_size, l_pub_key_data_size = a_cert->enc_key->pub_key_data_size; uint8_t *l_pub_key_data = a_cert->enc_key->pub_key_data_size ? dap_enc_key_serealize_pub_key(l_key, &l_pub_key_data_size) : -- GitLab