summaryrefslogtreecommitdiff
path: root/hiredis.c
diff options
context:
space:
mode:
Diffstat (limited to 'hiredis.c')
-rw-r--r--hiredis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hiredis.c b/hiredis.c
index 4247b82..ac5c3e3 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -446,10 +446,10 @@ static int processMultiBulkItem(redisReader *r) {
long elements;
int root = 0;
- /* Set error for nested multi bulks with depth > 1 */
- if (r->ridx == 2) {
+ /* Set error for nested multi bulks with depth > 2 */
+ if (r->ridx == 3) {
__redisReaderSetError(r,REDIS_ERR_PROTOCOL,
- "No support for nested multi bulk replies with depth > 1");
+ "No support for nested multi bulk replies with depth > 2");
return REDIS_ERR;
}