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

index 8c82e7637036e53108dcdbbc7471f0803828b2ed..9ebef5d8338ae854cb04b79036cd574b556f9f43 100644 (file)
@@ -4367,6 +4367,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)) {