Fix the build
I don't feel like breaking these out at the moment or writing a commit
message. This fixes the build for clang-tidy. If anyone wants to break
these out with appropriate commit messages, feel free.
Change-Id: Id0b65d238dfb9b8036c0ffddf2f32d221e5988c2
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/http/http_client.hpp b/http/http_client.hpp
index cb67022..99565be 100644
--- a/http/http_client.hpp
+++ b/http/http_client.hpp
@@ -243,13 +243,13 @@
{
return;
}
+ auto& ssl = *sslConn;
state = ConnState::handshakeInProgress;
timer.expires_after(std::chrono::seconds(30));
timer.async_wait(std::bind_front(onTimeout, weak_from_this()));
- sslConn->async_handshake(
- boost::asio::ssl::stream_base::client,
- std::bind_front(&ConnectionInfo::afterSslHandshake, this,
- shared_from_this()));
+ ssl.async_handshake(boost::asio::ssl::stream_base::client,
+ std::bind_front(&ConnectionInfo::afterSslHandshake,
+ this, shared_from_this()));
}
void afterSslHandshake(const std::shared_ptr<ConnectionInfo>& /*self*/,