Skip to content

Commit 97bb6bd

Browse files
Bulk strings can be zero length
Addresses phpredis#1349
1 parent 4533920 commit 97bb6bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cluster_library.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ cluster_multibulk_resp_recursive(RedisSock *sock, size_t elements,
146146
r->integer = len;
147147
break;
148148
case TYPE_BULK:
149-
if (r->len > 0) {
149+
if (r->len >= 0) {
150150
r->str = redis_sock_read_bulk_reply(sock,r->len TSRMLS_CC);
151151
if (!r->str) {
152152
*err = 1;

0 commit comments

Comments
 (0)