diff options
Diffstat (limited to 'deps/hiredis/read.c')
-rw-r--r-- | deps/hiredis/read.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/deps/hiredis/read.c b/deps/hiredis/read.c index 084d0b078..221438883 100644 --- a/deps/hiredis/read.c +++ b/deps/hiredis/read.c @@ -243,7 +243,9 @@ static void moveToNextTask(redisReader *r) { cur = &(r->rstack[r->ridx]); prv = &(r->rstack[r->ridx-1]); - assert(prv->type == REDIS_REPLY_ARRAY); + assert(prv->type == REDIS_REPLY_ARRAY || + prv->type == REDIS_REPLY_MAP || + prv->type == REDIS_REPLY_SET); if (cur->idx == prv->elements-1) { r->ridx--; } else { |