From 8526e04e7b5074944f95fafc9f19bd1b4d4a3a47 Mon Sep 17 00:00:00 2001 From: Huang Zhw Date: Mon, 10 May 2021 23:29:11 +0800 Subject: [PATCH] cluster process publish message only for known nodes. (#8856) --- src/cluster.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cluster.c b/src/cluster.c index 54be70db2..129b06f17 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -2148,6 +2148,8 @@ int clusterProcessPacket(clusterLink *link) { hdr->sender, hdr->data.fail.about.nodename); } } else if (type == CLUSTERMSG_TYPE_PUBLISH) { + if (!sender) return 1; /* We don't know that node. */ + robj *channel, *message; uint32_t channel_len, message_len;