diff options
author | antirez <antirez@gmail.com> | 2018-12-05 12:00:47 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2019-01-09 17:00:29 +0100 |
commit | 24a05e39f0e358d8332f82fb827d05c894462476 (patch) | |
tree | 95424308000bc60a7ba567efb3bb9292d5198f12 /deps/hiredis | |
parent | d4a4375d0510732e9578f9b54ab4cd7e85345393 (diff) | |
download | redis-24a05e39f0e358d8332f82fb827d05c894462476.tar.gz |
RESP3: hiredis: fix hiredis.c assert for new types.
Diffstat (limited to 'deps/hiredis')
-rw-r--r-- | deps/hiredis/hiredis.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/deps/hiredis/hiredis.c b/deps/hiredis/hiredis.c index 34a987b31..42d0f8dd1 100644 --- a/deps/hiredis/hiredis.c +++ b/deps/hiredis/hiredis.c @@ -152,7 +152,9 @@ static void *createArrayObject(const redisReadTask *task, int elements) { if (task->parent) { parent = task->parent->obj; - assert(parent->type == REDIS_REPLY_ARRAY); + assert(parent->type == REDIS_REPLY_ARRAY || + parent->type == REDIS_REPLY_MAP || + parent->type == REDIS_REPLY_SET); parent->element[task->idx] = r; } return r; @@ -169,7 +171,9 @@ static void *createIntegerObject(const redisReadTask *task, long long value) { if (task->parent) { parent = task->parent->obj; - assert(parent->type == REDIS_REPLY_ARRAY); + assert(parent->type == REDIS_REPLY_ARRAY || + parent->type == REDIS_REPLY_MAP || + parent->type == REDIS_REPLY_SET); parent->element[task->idx] = r; } return r; |