From 573961e6f9253661d2c267df286c7192dd06efec Mon Sep 17 00:00:00 2001 From: Mikko Koppanen Date: Mon, 20 Apr 2009 09:43:45 +0000 Subject: [PATCH] Closes #47991 SSL streams fail if error stack contains items --- ext/openssl/openssl.c | 1 + 1 file changed, 1 insertion(+) 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)) { -- 2.50.1