]> granicus.if.org Git - php/commitdiff
Closes #47991 SSL streams fail if error stack contains items
authorMikko Koppanen <mkoppanen@php.net>
Mon, 20 Apr 2009 09:43:45 +0000 (09:43 +0000)
committerMikko Koppanen <mkoppanen@php.net>
Mon, 20 Apr 2009 09:43:45 +0000 (09:43 +0000)
ext/openssl/openssl.c

index 01ad14561f79c2fe8256d1f979acf7a9100d4547..848ef7534ea31e89c210bf4eea74c21d1933f96c 100644 (file)
@@ -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)) {