Skip to content
Snippets Groups Projects

Hotfix balancer segv

Merged Constantin P. requested to merge hotfix-balancer-segv into master
1 file
+ 3
5
Compare changes
  • Side-by-side
  • Inline
@@ -747,13 +747,11 @@ bool dap_chain_node_client_connect(dap_chain_node_client_t *a_node_client, const
@@ -747,13 +747,11 @@ bool dap_chain_node_client_connect(dap_chain_node_client_t *a_node_client, const
struct sockaddr_in6 sa6 = { .sin6_family = AF_INET6, .sin6_addr = a_node_client->info->hdr.ext_addr_v6 };
struct sockaddr_in6 sa6 = { .sin6_family = AF_INET6, .sin6_addr = a_node_client->info->hdr.ext_addr_v6 };
inet_ntop(AF_INET6, &(((struct sockaddr_in6 *) &sa6)->sin6_addr), l_host_addr, INET6_ADDRSTRLEN);
inet_ntop(AF_INET6, &(((struct sockaddr_in6 *) &sa6)->sin6_addr), l_host_addr, INET6_ADDRSTRLEN);
}
}
log_it(L_INFO, "Connecting to %s address", l_host_addr);
if(!strlen(l_host_addr) || !strcmp(l_host_addr, "::") || !a_node_client->info->hdr.ext_port) {
// address not defined
log_it(L_WARNING, "Undefined address of node client");
if(!strcmp(l_host_addr, "::")) {
log_it(L_WARNING, "Undefined address with node client connect to");
return false;
return false;
}
}
int ret_code = 0;
log_it(L_INFO, "Connecting to addr %s : %d", l_host_addr, a_node_client->info->hdr.ext_port);
dap_client_set_uplink_unsafe(a_node_client->client, l_host_addr, a_node_client->info->hdr.ext_port);
dap_client_set_uplink_unsafe(a_node_client->client, l_host_addr, a_node_client->info->hdr.ext_port);
a_node_client->state = NODE_CLIENT_STATE_CONNECTING;
a_node_client->state = NODE_CLIENT_STATE_CONNECTING;
// Handshake & connect
// Handshake & connect
Loading