Commit d6c5922f authored by antirez's avatar antirez
Browse files

Cluster: fix missing ntohs() call to access gossip section port.

parent 592419b4
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment