com php-src: Clear errors after SSL_CTX_load_verify_loc ations(): ext/openssl/xp_ssl.c

From: Date: Mon, 03 Jun 2019 13:14:01 +0000
Subject: com php-src: Clear errors after SSL_CTX_load_verify_loc ations(): ext/openssl/xp_ssl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106532@lists.php.net to get a copy of this message
Commit: ac60007becc7943d1da95ec0f9f92c6a3325ec72 Author: Nikita Popov <nikita.ppv@gmail.com> Mon, 3 Jun 2019 15:14:01 +0200 Parents: 2e025794745e09f7d0c72822ad0238bf6d67b2e8 Branches: PHP-7.2 PHP-7.3 PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ac60007becc7943d1da95ec0f9f92c6a3325ec72 Log: Clear errors after SSL_CTX_load_verify_locations() We report our own errors here. Make sure these don't clog up the error queue. Changed paths: M ext/openssl/xp_ssl.c Diff: diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c index 9e481c6..56e5348 100644 --- a/ext/openssl/xp_ssl.c +++ b/ext/openssl/xp_ssl.c @@ -871,6 +871,7 @@ static int php_openssl_enable_peer_verification(SSL_CTX *ctx, php_stream *stream if (cafile || capath) { if (!SSL_CTX_load_verify_locations(ctx, cafile, capath)) { + ERR_clear_error(); if (cafile && !php_openssl_load_stream_cafile(SSL_CTX_get_cert_store(ctx), cafile)) { return FAILURE; }

« previous php.cvs (#106532) next »