diff options
author | michael-grunder <michael.grunder@gmail.com> | 2018-05-17 17:38:26 +0300 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2018-05-17 17:38:26 +0300 |
commit | 97bb6bd85e3fa38dbb13b97c50bd315490265a80 (patch) | |
tree | 3dead5745104e255208814620eb8c07fa2292bf1 /cluster_library.c | |
parent | 4533920fde608e12fe763cf2c977ed711c77e120 (diff) |
Bulk strings can be zero length
Addresses #1349
Diffstat (limited to 'cluster_library.c')
-rw-r--r-- | cluster_library.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cluster_library.c b/cluster_library.c index 65c7f349..09d71602 100644 --- a/cluster_library.c +++ b/cluster_library.c @@ -146,7 +146,7 @@ cluster_multibulk_resp_recursive(RedisSock *sock, size_t elements, r->integer = len; break; case TYPE_BULK: - if (r->len > 0) { + if (r->len >= 0) { r->str = redis_sock_read_bulk_reply(sock,r->len TSRMLS_CC); if (!r->str) { *err = 1; |