From f645c0113fe1b1b3233186f081651e8adbe50fc0 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Thu, 21 Apr 2016 09:48:37 -0400 Subject: Fix return type of TLS_Reader::get_u32bit Only affects decoding of session ticket lifetimes. GH #478 --- src/lib/tls/tls_reader.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/tls/tls_reader.h b/src/lib/tls/tls_reader.h index b3c6db0c9..88bc4e932 100644 --- a/src/lib/tls/tls_reader.h +++ b/src/lib/tls/tls_reader.h @@ -50,10 +50,10 @@ class TLS_Data_Reader m_offset += bytes; } - u16bit get_u32bit() + u32bit get_u32bit() { assert_at_least(4); - u16bit result = make_u32bit(m_buf[m_offset ], m_buf[m_offset+1], + u32bit result = make_u32bit(m_buf[m_offset ], m_buf[m_offset+1], m_buf[m_offset+2], m_buf[m_offset+3]); m_offset += 4; return result; -- cgit v1.2.3