aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/asio/asio_async_read_op.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/tls/asio/asio_async_read_op.h')
-rw-r--r--src/lib/tls/asio/asio_async_read_op.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/tls/asio/asio_async_read_op.h b/src/lib/tls/asio/asio_async_read_op.h
index 9bf2b393b..241f9ae5c 100644
--- a/src/lib/tls/asio/asio_async_read_op.h
+++ b/src/lib/tls/asio/asio_async_read_op.h
@@ -40,14 +40,13 @@ struct AsyncReadOperation
if(bytes_transferred > 0 && !ec)
{
- auto read_buffer =
- boost::asio::buffer(m_core.input_buffer, bytes_transferred);
+ boost::asio::const_buffer read_buffer {m_core.input_buffer.data(), bytes_transferred};
try
{
m_channel->received_data(static_cast<const uint8_t*>(read_buffer.data()),
read_buffer.size());
}
- catch(const std::exception &)
+ catch(const std::exception&)
{
ec = convertException();
}