aboutsummaryrefslogtreecommitdiffstats
path: root/src/ssl/s_kex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ssl/s_kex.cpp')
-rw-r--r--src/ssl/s_kex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ssl/s_kex.cpp b/src/ssl/s_kex.cpp
index 9fe37d490..220ef2e0b 100644
--- a/src/ssl/s_kex.cpp
+++ b/src/ssl/s_kex.cpp
@@ -118,7 +118,7 @@ void Server_Key_Exchange::deserialize(const MemoryRegion<byte>& buf)
if(len + so_far > buf.size())
throw Decoding_Error("Server_Key_Exchange: Packet corrupted");
- values[j].set(buf + so_far, len);
+ values[j].set(&buf[so_far], len);
so_far += len;
if(j == 2 && so_far == buf.size())