aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-10-18 06:02:09 -0400
committerJack Lloyd <[email protected]>2019-10-18 06:02:09 -0400
commit09b09d22cf7574108e834bb3e8715a38e4bad60c (patch)
tree537fd274a9743a7beb78cb66cd23fc24e86830a9 /src/lib/tls
parentca73e7a93e1b703252b70b4fe31c8c62f9cd6209 (diff)
Fix some MSVC warnings
Diffstat (limited to 'src/lib/tls')
-rw-r--r--src/lib/tls/tls_extensions.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/tls/tls_extensions.cpp b/src/lib/tls/tls_extensions.cpp
index 49f996228..588fee561 100644
--- a/src/lib/tls/tls_extensions.cpp
+++ b/src/lib/tls/tls_extensions.cpp
@@ -365,7 +365,9 @@ Supported_Groups::Supported_Groups(TLS_Data_Reader& reader,
if(len % 2 == 1)
throw Decoding_Error("Supported groups list of strange size");
- for(size_t i = 0; i != len / 2; ++i)
+ const size_t elems = len / 2;
+
+ for(size_t i = 0; i != elems; ++i)
{
const uint16_t id = reader.get_uint16_t();
m_groups.push_back(static_cast<Group_Params>(id));