aboutsummaryrefslogtreecommitdiffstats
path: root/src/symkey.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/symkey.cpp')
-rw-r--r--src/symkey.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/symkey.cpp b/src/symkey.cpp
index 9ab8c3ed3..b1f0786b0 100644
--- a/src/symkey.cpp
+++ b/src/symkey.cpp
@@ -29,7 +29,7 @@ void OctetString::change(const std::string& hex_string)
SecureVector<byte> hex;
for(u32bit j = 0; j != hex_string.length(); ++j)
if(Hex_Decoder::is_valid(hex_string[j]))
- hex.push_back(hex_string[j]);
+ hex.append(hex_string[j]);
if(hex.size() % 2 != 0)
throw Invalid_Argument("OctetString: hex string must encode full bytes");