Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2018-05-17 17:38:26 +0300
committermichael-grunder <michael.grunder@gmail.com>2018-05-17 17:38:26 +0300
commit97bb6bd85e3fa38dbb13b97c50bd315490265a80 (patch)
tree3dead5745104e255208814620eb8c07fa2292bf1 /cluster_library.c
parent4533920fde608e12fe763cf2c977ed711c77e120 (diff)
Bulk strings can be zero length
Addresses #1349
Diffstat (limited to 'cluster_library.c')
-rw-r--r--cluster_library.c2
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;