GitOrigin-RevId: 9186caef923dc157fcac2af9da8d8430b5d6290f
This commit is contained in:
levlam 2020-07-14 03:42:50 +03:00
parent 7767842d4c
commit 87871f58c9

View File

@ -229,7 +229,7 @@ Result<SslCtx> do_create_ssl_ctx(CSlice cert_file, SslStream::VerifyPeer verify_
if (SSL_CTX_set_default_verify_paths(ssl_ctx) == 0) {
auto error = create_openssl_error(-8, "Failed to load default verify paths");
if (verify_peer == SslStream::VerifyPeer::On) {
return error;
return std::move(error);
} else {
LOG(ERROR) << error;
}