diff options
author | lloyd <[email protected]> | 2012-06-06 16:57:34 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-06-06 16:57:34 +0000 |
commit | b394fe00bc15378037bbd8bb429ddbe1d5c15d42 (patch) | |
tree | 18a34e7d116dcbe66868cee3d7244fee4a7d32af /src | |
parent | 4d1378782d83fda342afc3e200f38ef6964ae6e2 (diff) |
Fix for DHE, strip_leading_zeros always took off the last byte
Diffstat (limited to 'src')
-rw-r--r-- | src/tls/c_kex.cpp | 2 |
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; } |