Skip to content

Commit 411f4b1

Browse files
committed
Fix indent and add comment
1 parent 760ff21 commit 411f4b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/openssl/xp_ssl.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ int php_openssl_setup_crypto(php_stream *stream,
16611661
}
16621662

16631663
#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);
16651665
#endif
16661666

16671667
if (cparam->inputs.session) {
@@ -1801,6 +1801,8 @@ static int php_openssl_enable_crypto(php_stream *stream,
18011801

18021802
if (SUCCESS == php_set_sock_blocking(sslsock->s.socket, 0)) {
18031803
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 */
18041806
SSL_set_mode(
18051807
sslsock->ssl_handle,
18061808
(

0 commit comments

Comments
 (0)