mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Cluster: sanity check FAILOVER_AUTH_REQUEST messages for proper length.
This commit is contained in:
parent
66144337bf
commit
ece95b2dea
@ -793,6 +793,10 @@ int clusterProcessPacket(clusterLink *link) {
|
|||||||
ntohl(hdr->data.publish.msg.channel_len) +
|
ntohl(hdr->data.publish.msg.channel_len) +
|
||||||
ntohl(hdr->data.publish.msg.message_len);
|
ntohl(hdr->data.publish.msg.message_len);
|
||||||
if (totlen != explen) return 1;
|
if (totlen != explen) return 1;
|
||||||
|
} else if (type == CLUSTERMSG_TYPE_FAILOVER_AUTH_REQUEST) {
|
||||||
|
uint32_t explen = sizeof(clusterMsg)-sizeof(union clusterMsgData);
|
||||||
|
|
||||||
|
if (totlen != explen) return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ready to process the packet. Dispatch by type. */
|
/* Ready to process the packet. Dispatch by type. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user