Commit 9eb00f21 authored by antirez's avatar antirez
Browse files

protocol fix in SORT reply with null elements

parent fab3a740
...@@ -2772,7 +2772,7 @@ static void sortCommand(redisClient *c) { ...@@ -2772,7 +2772,7 @@ static void sortCommand(redisClient *c) {
if (sop->type == REDIS_SORT_GET) { if (sop->type == REDIS_SORT_GET) {
if (!val || val->type != REDIS_STRING) { if (!val || val->type != REDIS_STRING) {
addReply(c,shared.minus1); addReply(c,shared.nullbulk);
} else { } else {
addReplySds(c,sdscatprintf(sdsempty(),"$%d\r\n", addReplySds(c,sdscatprintf(sdsempty(),"$%d\r\n",
sdslen(val->ptr))); sdslen(val->ptr)));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment