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
d6c5922f
Commit
d6c5922f
authored
Jan 26, 2016
by
antirez
Browse files
Cluster: fix missing ntohs() call to access gossip section port.
parent
592419b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
d6c5922f
...
...
@@ -1342,7 +1342,7 @@ void clusterProcessGossipSection(clusterMsg *hdr, clusterLink *link) {
{
if
(
node
->
link
)
freeClusterLink
(
node
->
link
);
memcpy
(
node
->
ip
,
g
->
ip
,
NET_IP_STR_LEN
);
node
->
port
=
g
->
port
;
node
->
port
=
ntohs
(
g
->
port
)
;
node
->
flags
&=
~
CLUSTER_NODE_NOADDR
;
}
}
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