]> granicus.if.org Git - php/commitdiff
Fix indent and add comment
authorJakub Zelenka <bukka@php.net>
Wed, 8 Mar 2017 19:38:54 +0000 (19:38 +0000)
committerJakub Zelenka <bukka@php.net>
Tue, 14 Mar 2017 18:13:57 +0000 (18:13 +0000)
ext/openssl/xp_ssl.c

index e1bb51045cbd5a7037abd53eef890d302c5c4aad..7db219ddecfc3abcdc0b2147562b2e6686eab047 100644 (file)
@@ -1661,7 +1661,7 @@ int php_openssl_setup_crypto(php_stream *stream,
        }
 
 #ifdef SSL_MODE_RELEASE_BUFFERS
-    SSL_set_mode(sslsock->ssl_handle, SSL_get_mode(sslsock->ssl_handle) | SSL_MODE_RELEASE_BUFFERS);
+       SSL_set_mode(sslsock->ssl_handle, SSL_get_mode(sslsock->ssl_handle) | SSL_MODE_RELEASE_BUFFERS);
 #endif
 
        if (cparam->inputs.session) {
@@ -1801,6 +1801,8 @@ static int php_openssl_enable_crypto(php_stream *stream,
 
                if (SUCCESS == php_set_sock_blocking(sslsock->s.socket, 0)) {
                        sslsock->s.is_blocked = 0;
+                       /* The following mode are added only if we are able to change socket
+                        * to non blocking mode which is also used for read and write */
                        SSL_set_mode(
                                sslsock->ssl_handle,
                                (