php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #54992
Patch xp_ssl_patch revision 2011-06-04 12:11 UTC by laird_ngrps at dodo dot com dot au

Patch xp_ssl_patch for Streams related Bug #54992

Patch version 2011-06-04 12:11 UTC

Return to Bug #54992 | Download this patch
Patch Revisions:

Developer: laird_ngrps@dodo.com.au

--- ext/openssl/xp_ssl.c.org	2011-01-01 13:19:59.000000000 +1100
+++ ext/openssl/xp_ssl.c	2011-06-04 20:46:50.000000000 +1000
@@ -505,6 +505,7 @@
 
 			if (FAILURE == php_openssl_apply_verification_policy(sslsock->ssl_handle, peer_cert, stream TSRMLS_CC)) {
 				SSL_shutdown(sslsock->ssl_handle);
+				return -1;
 			} else {	
 				sslsock->ssl_active = 1;
 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 17:01:29 2024 UTC