diff options
author | Mikko Koppanen <mkoppanen@php.net> | 2009-04-20 09:43:45 +0000 |
---|---|---|
committer | Mikko Koppanen <mkoppanen@php.net> | 2009-04-20 09:43:45 +0000 |
commit | 573961e6f9253661d2c267df286c7192dd06efec (patch) | |
tree | 77637dc27ca63c93262572321ea622592bb1c3a2 | |
parent | 16606a9cdf6755de0196b65c4b04d736151f7296 (diff) | |
download | php-git-573961e6f9253661d2c267df286c7192dd06efec.tar.gz |
Closes #47991 SSL streams fail if error stack contains items
-rw-r--r-- | ext/openssl/openssl.c | 1 |
1 files changed, 1 insertions, 0 deletions
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)) { |