summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2020-04-16 11:21:52 +0200
committerantirez <antirez@gmail.com>2020-04-16 11:21:52 +0200
commitc9388ecc73c64491b0c5aef2c6a65068ddd6b2c7 (patch)
tree602b697c6c690a1a89bdc547f47be46c1fbb1f01
parent503a5a24fb6cf3bd95590a53d14fce82086be52c (diff)
downloadredis-c9388ecc73c64491b0c5aef2c6a65068ddd6b2c7.tar.gz
RESP3: fix HELLO map len in Sentinel mode.
See #6160.
-rw-r--r--src/networking.c2
1 files changed, 1 insertions, 1 deletions
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");