Skip to content

Commit 37bba7a

Browse files
committed
Merge branch 'PHP-7.2' into PHP-7.3
2 parents 8f69ca8 + ac60007 commit 37bba7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/openssl/xp_ssl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,7 @@ static int php_openssl_enable_peer_verification(SSL_CTX *ctx, php_stream *stream
875875

876876
if (cafile || capath) {
877877
if (!SSL_CTX_load_verify_locations(ctx, cafile, capath)) {
878+
ERR_clear_error();
878879
if (cafile && !php_openssl_load_stream_cafile(SSL_CTX_get_cert_store(ctx), cafile)) {
879880
return FAILURE;
880881
}

0 commit comments

Comments
 (0)