summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2018-12-07 16:42:49 +0100
committerantirez <antirez@gmail.com>2018-12-21 11:42:52 +0100
commitbe5b00993ab6ee963ab8977ac72ab53b35e193ca (patch)
tree9495d46f535e49ecdaafb447c736512279f84352
parent222293b657db5cc6611a3d22830d954264c1e618 (diff)
downloadredis-be5b00993ab6ee963ab8977ac72ab53b35e193ca.tar.gz
RESP3: fix DEBUG DIGEST-VALUE with new API.
-rw-r--r--src/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug.c b/src/debug.c
index 1ec7c4977..2391f7377 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -517,7 +517,7 @@ NULL
sdsfree(d);
} else if (!strcasecmp(c->argv[1]->ptr,"digest-value") && c->argc >= 2) {
/* DEBUG DIGEST-VALUE key key key ... key. */
- addReplyMultiBulkLen(c,c->argc-2);
+ addReplyArrayLen(c,c->argc-2);
for (int j = 2; j < c->argc; j++) {
unsigned char digest[20];
memset(digest,0,20); /* Start with a clean result */