Skip to content

Commit a438fd6

Browse files
committed
Fixed crash.
1 parent 6a7277a commit a438fd6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ PHPAPI void redis_check_eof(RedisSock *redis_sock TSRMLS_DC)
77
while(eof) {
88
redis_sock->stream = NULL;
99
redis_sock_connect(redis_sock TSRMLS_CC);
10-
eof = php_stream_eof(redis_sock->stream);
10+
if(redis_sock->stream) {
11+
eof = php_stream_eof(redis_sock->stream);
12+
}
1113
}
1214
}
1315

0 commit comments

Comments
 (0)