Update clusterMsgDataPublish to clusterMsgModule (#7682)

Correcting the variable to clusterMsgModule.

(cherry picked from commit 34c3be365a3a8bc74f7a99b3e35cb211afaa58ca)
This commit is contained in:
Raghav Muddur 2020-08-19 19:13:32 -07:00 committed by Oran Agra
parent ba48e7e9cd
commit 1bd75aafdb

View File

@ -1767,7 +1767,7 @@ int clusterProcessPacket(clusterLink *link) {
} else if (type == CLUSTERMSG_TYPE_MODULE) { } else if (type == CLUSTERMSG_TYPE_MODULE) {
uint32_t explen = sizeof(clusterMsg)-sizeof(union clusterMsgData); uint32_t explen = sizeof(clusterMsg)-sizeof(union clusterMsgData);
explen += sizeof(clusterMsgDataPublish) - explen += sizeof(clusterMsgModule) -
3 + ntohl(hdr->data.module.msg.len); 3 + ntohl(hdr->data.module.msg.len);
if (totlen != explen) return 1; if (totlen != explen) return 1;
} }