summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaghav Muddur <r@nmvk.com>2020-08-19 19:13:32 -0700
committerGitHub <noreply@github.com>2020-08-19 19:13:32 -0700
commit34c3be365a3a8bc74f7a99b3e35cb211afaa58ca (patch)
tree24ee496c826b46ace29265e7d8eeaf28d93e59c9
parentcbd9af85838a73c9c9654829cf8e511ecc5853de (diff)
downloadredis-34c3be365a3a8bc74f7a99b3e35cb211afaa58ca.tar.gz
Update clusterMsgDataPublish to clusterMsgModule (#7682)
Correcting the variable to clusterMsgModule.
-rw-r--r--src/cluster.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cluster.c b/src/cluster.c
index 3bf8db9af..463503700 100644
--- a/src/cluster.c
+++ b/src/cluster.c
@@ -1767,7 +1767,7 @@ int clusterProcessPacket(clusterLink *link) {
} else if (type == CLUSTERMSG_TYPE_MODULE) {
uint32_t explen = sizeof(clusterMsg)-sizeof(union clusterMsgData);
- explen += sizeof(clusterMsgDataPublish) -
+ explen += sizeof(clusterMsgModule) -
3 + ntohl(hdr->data.module.msg.len);
if (totlen != explen) return 1;
}