aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/tls_handshake_io.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-04-06 22:48:04 +0000
committerlloyd <[email protected]>2014-04-06 22:48:04 +0000
commite67cbc67e4e1bf289aeb28361fa0fa432886b5d7 (patch)
tree7506aae8d50276183fe520f9211aa71989f1e201 /src/lib/tls/tls_handshake_io.cpp
parent2bcb87efa3187ea2dca7cd506dade7bd90066830 (diff)
A std::deque's memory is not guaranteed to be contiguous
Diffstat (limited to 'src/lib/tls/tls_handshake_io.cpp')
-rw-r--r--src/lib/tls/tls_handshake_io.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/tls/tls_handshake_io.cpp b/src/lib/tls/tls_handshake_io.cpp
index 38def13a2..287918841 100644
--- a/src/lib/tls/tls_handshake_io.cpp
+++ b/src/lib/tls/tls_handshake_io.cpp
@@ -64,7 +64,7 @@ Stream_Handshake_IO::get_next_record(bool)
{
if(m_queue.size() >= 4)
{
- const size_t length = load_be24(&m_queue[1]);
+ const size_t length = make_u32bit(0, m_queue[1], m_queue[2], m_queue[3]);
if(m_queue.size() >= length + 4)
{