0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 04:02:15 +02:00

WS::Client::HTTPCore: fix coverity issue "declaration hides parameter"

CID 11948: (#2 of 2): Parse warning (PW.PARAMETER_HIDDEN)
parameter_hidden: declaration hides parameter "error"

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
This commit is contained in:
Frank Lichtenheld 2023-11-22 16:13:32 +01:00 committed by Antonio Quartulli
parent 9524e33727
commit b4082c93cb
No known key found for this signature in database
GPG Key ID: E30C62865881C3D6

View File

@ -851,8 +851,8 @@ class HTTPCore : public Base, public TransportClientParent
openvpn_io::async_connect(s->socket,
std::move(results),
[self = Ptr(this)](const openvpn_io::error_code &error, const openvpn_io::ip::tcp::endpoint &endpoint)
{ self->handle_tcp_connect(error, endpoint); });
[self = Ptr(this)](const openvpn_io::error_code &error_, const openvpn_io::ip::tcp::endpoint &endpoint)
{ self->handle_tcp_connect(error_, endpoint); });
}
catch (const std::exception &e)
{