From 48781dd95cdd1d35c8436c91f0414ca26721a34d Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 16 Apr 2020 11:21:52 +0200 Subject: [PATCH] RESP3: fix HELLO map len in Sentinel mode. See #6160. --- src/networking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/networking.c b/src/networking.c index 3dd6bf5da..8f3d79170 100644 --- a/src/networking.c +++ b/src/networking.c @@ -2444,7 +2444,7 @@ void helloCommand(client *c) { /* Let's switch to the specified RESP mode. */ c->resp = ver; - addReplyMapLen(c,7); + addReplyMapLen(c,6 + !server.sentinel_mode); addReplyBulkCString(c,"server"); addReplyBulkCString(c,"redis");