mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Cluster: fix missing ntohs() call to access gossip section port.
This commit is contained in:
parent
592419b4ca
commit
d6c5922f75
@ -1342,7 +1342,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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user