aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
{