diff --git a/dap-sdk b/dap-sdk index 48ad279825c269200cb4a86c36d32d9bf15f2949..9a4290d80e07e8a2192477ae013cea9d78ce2cba 160000 --- a/dap-sdk +++ b/dap-sdk @@ -1 +1 @@ -Subproject commit 48ad279825c269200cb4a86c36d32d9bf15f2949 +Subproject commit 9a4290d80e07e8a2192477ae013cea9d78ce2cba diff --git a/modules/net/dap_chain_node_cli_cmd.c b/modules/net/dap_chain_node_cli_cmd.c index 12e8342a63d10bb586c7de019674f9b091e90a4e..6e99d9415169af1640c059de5a28544b118845ee 100644 --- a/modules/net/dap_chain_node_cli_cmd.c +++ b/modules/net/dap_chain_node_cli_cmd.c @@ -1259,6 +1259,7 @@ int com_node(int a_argc, char ** a_argv, void **a_str_reply) } break; case CMD_CONNECTIONS: { + if (l_net) { dap_cluster_t *l_links_cluster = dap_cluster_by_mnemonim(l_net->pub.name); if (!l_links_cluster) { @@ -1271,8 +1272,14 @@ int com_node(int a_argc, char ** a_argv, void **a_str_reply) dap_cluster_t *l_cluster = NULL; dap_cli_server_cmd_find_option_val(a_argv, arg_index, a_argc, "-cluster", &l_guuid_str); if (l_guuid_str) { - dap_guuid_t l_guuid = dap_guuid_from_hex_str(l_guuid_str); + bool l_success = false; + dap_guuid_t l_guuid = dap_guuid_from_hex_str(l_guuid_str, &l_success); + if (!l_success) { + dap_cli_server_cmd_set_reply_text(a_str_reply, "Can't parse cluster guid %s", l_guuid_str); + break; + } l_cluster = dap_cluster_find(l_guuid); + if (!l_cluster) { dap_cli_server_cmd_set_reply_text(a_str_reply, "Not found cluster with ID %s", l_guuid_str); break;