diff options
| author | Wez Furlong <wez@php.net> | 2003-10-08 11:23:47 +0000 |
|---|---|---|
| committer | Wez Furlong <wez@php.net> | 2003-10-08 11:23:47 +0000 |
| commit | e087da60dcec746632f1c94052fb72b72fffa376 (patch) | |
| tree | 4317bc5babab8601ef91a4bca360bc30c9060aca /ext | |
| parent | d65297c75041bf1499b736dbd2fbcecafede8c82 (diff) | |
| download | php-git-e087da60dcec746632f1c94052fb72b72fffa376.tar.gz | |
And this EOF flag...
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/openssl/xp_ssl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c index 0ce87b9bca..1157179c53 100644 --- a/ext/openssl/xp_ssl.c +++ b/ext/openssl/xp_ssl.c @@ -165,9 +165,8 @@ static size_t php_openssl_sockop_read(php_stream *stream, char *buf, size_t coun if (nr_bytes <= 0) { retry = handle_ssl_error(stream, nr_bytes TSRMLS_CC); - if (retry == 0 && !SSL_pending(sslsock->ssl_handle)) { - stream->eof = 1; - } + stream->eof = (retry == 0 && !SSL_pending(sslsock->ssl_handle)); + } else { /* we got the data */ break; |
