From 0a678b5316fe477bca45066ec4072ce55e021ff0 Mon Sep 17 00:00:00 2001
From: Aleksandr Lysikov <lysikov@inbox.ru>
Date: Tue, 21 May 2019 22:47:26 +0500
Subject: [PATCH] added zeroing pointer after delete l_node_client->client

---
 dap_chain_node_cli_cmd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dap_chain_node_cli_cmd.c b/dap_chain_node_cli_cmd.c
index d9cc3dd..e3e0464 100644
--- a/dap_chain_node_cli_cmd.c
+++ b/dap_chain_node_cli_cmd.c
@@ -984,6 +984,7 @@ int com_node(int argc, const char ** argv, char **str_reply)
         log_it(L_INFO, "Chains and gdb are synced");
         DAP_DELETE(l_remote_node_info);
         dap_client_disconnect(l_node_client->client);
+        l_node_client->client = NULL;
         dap_chain_node_client_close(l_node_client);
         dap_chain_node_cli_set_reply_text(str_reply, "Node sync completed: Chains and gdb are synced");
         return 0;
-- 
GitLab