com php-src: Merge branch 'PHP-5.6': ext/openssl/xp_ssl.c

From: Date: Fri, 13 Feb 2015 12:40:37 +0000
Subject: com php-src: Merge branch 'PHP-5.6': ext/openssl/xp_ssl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84860@lists.php.net to get a copy of this message
Commit: c17e007a293356a5b1e511626addb9f13d4eaaee Author: Anatol Belski <ab@php.net> Fri, 13 Feb 2015 13:40:37 +0100 Parents: 627a2137617712696137a3b1791b5eeb25a56302 b3d28d14d6cec9b3968dda5da41feb02d5b1b069 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c17e007a293356a5b1e511626addb9f13d4eaaee Log: Merge branch 'PHP-5.6' * PHP-5.6: fix condition Changed paths: MM ext/openssl/xp_ssl.c Diff: diff --cc ext/openssl/xp_ssl.c index 2008c11,96c282c..2165091 --- a/ext/openssl/xp_ssl.c +++ b/ext/openssl/xp_ssl.c @@@ -1840,15 -1864,15 +1840,15 @@@ static size_t php_openssl_sockop_io(in if (errno == EAGAIN && err == SSL_ERROR_WANT_READ && read) { retry = 1; } - if (errno == EAGAIN && SSL_ERROR_WANT_WRITE && read == 0) { + if (errno == EAGAIN && err == SSL_ERROR_WANT_WRITE && read == 0) { retry = 1; } - + /* Also, on reads, we may get this condition on an EOF. We should check properly. */ if (read) { - stream->eof = (retry == 0 && errno != EAGAIN && !SSL_pending(sslsock->ssl_handle)); + stream->eof = (retry == 0 && errno != EAGAIN && !SSL_pending(sslsock->ssl_handle)); } - + /* Now, if we have to wait some time, and we're supposed to be blocking, wait for the socket to become * available. Now, php_pollfd_for uses select to wait up to our time_left value only... */

« previous php.cvs (#84860) next »