aboutsummaryrefslogtreecommitdiff
path: root/libcmix-network/accept.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcmix-network/accept.cpp')
-rw-r--r--libcmix-network/accept.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcmix-network/accept.cpp b/libcmix-network/accept.cpp
index 1ec26fe..9806a67 100644
--- a/libcmix-network/accept.cpp
+++ b/libcmix-network/accept.cpp
@@ -36,12 +36,12 @@ void accept_connection(tcp::acceptor& acceptor, std::shared_ptr<ssl::context> ct
{
if(!bool(ec))
{
- socket->async_handshake(boost::asio::ssl::stream_base::server, [&acceptor, ctx, socket, f](boost::system::error_code const& ec) {
- if(!bool(ec)) {
+ socket->async_handshake(boost::asio::ssl::stream_base::server, [&acceptor, ctx, socket, f](boost::system::error_code const& ec2) {
+ if(!bool(ec2)) {
f(std::unique_ptr<ssl::stream<tcp::socket>>(socket), ctx);
} else {
std::stringstream ss;
- ss << ec.message();
+ ss << ec2.message();
delete socket;
throw std::runtime_error(ss.str());
}