]> granicus.if.org Git - php/commitdiff
And this EOF flag...
authorWez Furlong <wez@php.net>
Wed, 8 Oct 2003 11:23:47 +0000 (11:23 +0000)
committerWez Furlong <wez@php.net>
Wed, 8 Oct 2003 11:23:47 +0000 (11:23 +0000)
ext/openssl/xp_ssl.c

index 0ce87b9bca726afb12dcec654506546d34152fcf..1157179c533a8b124bddde842f3bb4fc4538ba5a 100644 (file)
@@ -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;