File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1661,7 +1661,7 @@ int php_openssl_setup_crypto(php_stream *stream,
1661
1661
}
1662
1662
1663
1663
#ifdef SSL_MODE_RELEASE_BUFFERS
1664
- SSL_set_mode (sslsock -> ssl_handle , SSL_get_mode (sslsock -> ssl_handle ) | SSL_MODE_RELEASE_BUFFERS );
1664
+ SSL_set_mode (sslsock -> ssl_handle , SSL_get_mode (sslsock -> ssl_handle ) | SSL_MODE_RELEASE_BUFFERS );
1665
1665
#endif
1666
1666
1667
1667
if (cparam -> inputs .session ) {
@@ -1801,6 +1801,8 @@ static int php_openssl_enable_crypto(php_stream *stream,
1801
1801
1802
1802
if (SUCCESS == php_set_sock_blocking (sslsock -> s .socket , 0 )) {
1803
1803
sslsock -> s .is_blocked = 0 ;
1804
+ /* The following mode are added only if we are able to change socket
1805
+ * to non blocking mode which is also used for read and write */
1804
1806
SSL_set_mode (
1805
1807
sslsock -> ssl_handle ,
1806
1808
(
You can’t perform that action at this time.
0 commit comments