Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
20
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
cellframe-sdk
Commits
f34a6ec1
Commit
f34a6ec1
authored
1 year ago
by
Constantin P.
💬
Browse files
Options
Downloads
Patches
Plain Diff
Hotfix balancer segv
parent
a8900a5d
No related branches found
No related tags found
1 merge request
!1268
Hotfix balancer segv
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/net/dap_chain_node_client.c
+3
-5
3 additions, 5 deletions
modules/net/dap_chain_node_client.c
with
3 additions
and
5 deletions
modules/net/dap_chain_node_client.c
+
3
−
5
View file @
f34a6ec1
...
...
@@ -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
};
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
);
// address not defined
if
(
!
strcmp
(
l_host_addr
,
"::"
))
{
log_it
(
L_WARNING
,
"Undefined address with node client connect to"
);
if
(
!
strlen
(
l_host_addr
)
||
!
strcmp
(
l_host_addr
,
"::"
)
||
!
a_node_client
->
info
->
hdr
.
ext_port
)
{
log_it
(
L_WARNING
,
"Undefined address of node client"
);
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
);
a_node_client
->
state
=
NODE_CLIENT_STATE_CONNECTING
;
// Handshake & connect
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment