com php-src: Tidy up setting of SSL_MODE_RELEASE_BUFFERS : ext/openssl/xp_ssl.c

[email protected] (Jakub Zelenka)
Newsgroups php.cvs
Message-ID <[email protected]>
Commit:    760ff21bf3999f0ca6bf3dae300a057b2997661d
Author:    Jakub Zelenka <[email protected]>         Wed, 8 Mar 2017 19:30:02 +0000
Parents:   53cc72ef8649ebdffe0a0c06a00b6915ba01fe21
Branches:  PHP-7.0

Link:       http://git.php.net/?p=php-src.git;a=commitdiff;h=760ff21bf3999f0ca6bf3dae300a057b2997661d

Log:
Tidy up setting of SSL_MODE_RELEASE_BUFFERS

Changed paths:
  M  ext/openssl/xp_ssl.c


Diff:
diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c
index 6fc7836..e1bb510 100644
--- a/ext/openssl/xp_ssl.c
+++ b/ext/openssl/xp_ssl.c
@@ -1661,10 +1661,7 @@ int php_openssl_setup_crypto(php_stream *stream,
 	}
 
 #ifdef SSL_MODE_RELEASE_BUFFERS
-	do {
-		long mode = SSL_get_mode(sslsock->ssl_handle);
-		SSL_set_mode(sslsock->ssl_handle, mode | SSL_MODE_RELEASE_BUFFERS);
-	} while (0);
+    SSL_set_mode(sslsock->ssl_handle, SSL_get_mode(sslsock->ssl_handle) | SSL_MODE_RELEASE_BUFFERS);
 #endif
 
 	if (cparam->inputs.session) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.