diff options
Diffstat (limited to 'src/ssl/s_kex.cpp')
-rw-r--r-- | src/ssl/s_kex.cpp | 2 |
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()) |