Skip to content

Commit 661fb5b

Browse files
Sergei Lomakovmichael-grunder
authored andcommitted
Fix problem with rediscluster storage
1 parent 597da7a commit 661fb5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis_session.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ PS_READ_FUNC(rediscluster) {
625625

626626
/* Attempt to read reply */
627627
reply = cluster_read_resp(c TSRMLS_CC);
628-
if (!reply || c->err) {
628+
if (!reply || c->err || reply->str == NULL) {
629629
if (reply) cluster_free_reply(reply, 1);
630630
return FAILURE;
631631
}

0 commit comments

Comments
 (0)