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

This commit is contained in:
antirez 2016-01-26 14:18:13 +01:00
parent 592419b4ca
commit d6c5922f75

View File

@ -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 {