mirror of
https://github.com/fluencelabs/redis
synced 2025-05-02 05:52:13 +00:00
Cluster: fix missing ntohs() call to access gossip section port.
This commit is contained in:
parent
bd998b7d46
commit
7f97d75ef6
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user