From: Mikko Koppanen Date: Mon, 20 Apr 2009 09:43:45 +0000 (+0000) Subject: Closes #47991 SSL streams fail if error stack contains items X-Git-Tag: php-5.4.0alpha1~191^2~3896 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=573961e6f9253661d2c267df286c7192dd06efec;p=php Closes #47991 SSL streams fail if error stack contains items --- diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 01ad14561f..848ef7534e 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -4628,6 +4628,7 @@ SSL *php_SSL_new_from_context(SSL_CTX *ctx, php_stream *stream TSRMLS_DC) /* {{{ char *cipherlist = NULL; int ok = 1; + ERR_clear_error(); /* look at context options in the stream and set appropriate verification flags */ if (GET_VER_OPT("verify_peer") && zval_is_true(*val)) {