提交 ece95b2d 编写于 作者: A antirez

Cluster: sanity check FAILOVER_AUTH_REQUEST messages for proper length.

上级 66144337
......@@ -793,6 +793,10 @@ int clusterProcessPacket(clusterLink *link) {
ntohl(hdr->data.publish.msg.channel_len) +
ntohl(hdr->data.publish.msg.message_len);
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. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册