diff options
Diffstat (limited to 'src/ssl/c_kex.cpp')
-rw-r--r-- | src/ssl/c_kex.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ssl/c_kex.cpp b/src/ssl/c_kex.cpp index fafb67d3d..2a5dea7b3 100644 --- a/src/ssl/c_kex.cpp +++ b/src/ssl/c_kex.cpp @@ -82,10 +82,10 @@ SecureVector<byte> Client_Key_Exchange::serialize() const if(include_length) { u16bit key_size = key_material.size(); - buf.append(get_byte(0, key_size)); - buf.append(get_byte(1, key_size)); + buf.push_back(get_byte(0, key_size)); + buf.push_back(get_byte(1, key_size)); } - buf.append(key_material); + buf += key_material; return buf; } |