From: Wez Furlong Date: Wed, 8 Oct 2003 11:23:47 +0000 (+0000) Subject: And this EOF flag... X-Git-Tag: RELEASE_1_3b3~87 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e087da60dcec746632f1c94052fb72b72fffa376;p=php And this EOF flag... --- 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;