aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/c_kex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tls/c_kex.cpp')
-rw-r--r--src/tls/c_kex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tls/c_kex.cpp b/src/tls/c_kex.cpp
index eec8d2996..e687ff98a 100644
--- a/src/tls/c_kex.cpp
+++ b/src/tls/c_kex.cpp
@@ -38,7 +38,7 @@ secure_vector<byte> strip_leading_zeros(const secure_vector<byte>& input)
}
secure_vector<byte> output(&input[leading_zeros],
- &input[input.size()-1]);
+ &input[input.size()]);
return output;
}