Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
4685f253
Commit
4685f253
authored
Jan 26, 2016
by
antirez
Browse files
Cluster: fix missing ntohs() call to access gossip section port.
parent
025f936c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
4685f253
...
@@ -1350,7 +1350,7 @@ void clusterProcessGossipSection(clusterMsg *hdr, clusterLink *link) {
...
@@ -1350,7 +1350,7 @@ void clusterProcessGossipSection(clusterMsg *hdr, clusterLink *link) {
{
{
if (node->link) freeClusterLink(node->link);
if (node->link) freeClusterLink(node->link);
memcpy(node->ip,g->ip,NET_IP_STR_LEN);
memcpy(node->ip,g->ip,NET_IP_STR_LEN);
node->port = g->port;
node->port =
ntohs(
g->port
)
;
node->flags &= ~CLUSTER_NODE_NOADDR;
node->flags &= ~CLUSTER_NODE_NOADDR;
}
}
} else {
} else {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment