aboutsummaryrefslogtreecommitdiffhomepage
path: root/tddb/td/db/binlog/Binlog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tddb/td/db/binlog/Binlog.cpp')
-rw-r--r--tddb/td/db/binlog/Binlog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tddb/td/db/binlog/Binlog.cpp b/tddb/td/db/binlog/Binlog.cpp
index ddd6a723c..3ad28c8e9 100644
--- a/tddb/td/db/binlog/Binlog.cpp
+++ b/tddb/td/db/binlog/Binlog.cpp
@@ -581,9 +581,9 @@ Status Binlog::load_binlog(const Callback &callback, const Callback &debug_callb
}
void Binlog::update_encryption(Slice key, Slice iv) {
- as_slice(aes_ctr_key_).copy_from(key);
+ as_mutable_slice(aes_ctr_key_).copy_from(key);
UInt128 aes_ctr_iv;
- as_slice(aes_ctr_iv).copy_from(iv);
+ as_mutable_slice(aes_ctr_iv).copy_from(iv);
aes_ctr_state_.init(as_slice(aes_ctr_key_), as_slice(aes_ctr_iv));
}