diff options
Diffstat (limited to 'cluster_library.c')
-rw-r--r-- | cluster_library.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cluster_library.c b/cluster_library.c index 0d202dc8..33073172 100644 --- a/cluster_library.c +++ b/cluster_library.c @@ -748,7 +748,7 @@ static int cluster_send_asking(RedisSock *redis_sock TSRMLS_DC) } // Consume the rest of our response - if(php_stream_gets(redis_sock->stream, buf, sizeof(buf)<0)) { + if(!php_stream_gets(redis_sock->stream, buf, sizeof(buf))) { return -1; } @@ -940,7 +940,7 @@ static int cluster_check_response(redisCluster *c, unsigned short slot, int moved; // Attempt to read the error - if(php_stream_gets(SLOT_STREAM(c,slot), inbuf, sizeof(inbuf))<0) { + if(!php_stream_gets(SLOT_STREAM(c,slot), inbuf, sizeof(inbuf))) { return -1; } |