diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-05-19 17:36:58 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2020-05-19 17:36:58 -0500 |
commit | 0161cb79a189ac437bc68fc3f5ff1ba17544298b (patch) | |
tree | c30a8de3c3372ff0bdbd89658c2ec544d4171957 | |
parent | Merge pull request #6560 (diff) | |
parent | wallet2: fix multisig data clearing stomping on a vector (diff) | |
download | monero-0161cb79a189ac437bc68fc3f5ff1ba17544298b.tar.xz |
Merge pull request #6562
705c78b wallet2: fix multisig data clearing stomping on a vector (moneromooo-monero)
-rw-r--r-- | src/wallet/wallet2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 8def7cf90..1627b63b3 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -13094,7 +13094,7 @@ size_t wallet2::import_multisig(std::vector<cryptonote::blobdata> blobs) CHECK_AND_ASSERT_THROW_MES(info.size() + 1 <= m_multisig_signers.size() && info.size() + 1 >= m_multisig_threshold, "Wrong number of multisig sources"); std::vector<std::vector<rct::key>> k; - auto wiper = epee::misc_utils::create_scope_leave_handler([&](){memwipe(k.data(), k.size() * sizeof(k[0]));}); + auto wiper = epee::misc_utils::create_scope_leave_handler([&](){for (auto &v: k) memwipe(v.data(), v.size() * sizeof(v[0]));}); k.reserve(m_transfers.size()); for (const auto &td: m_transfers) k.push_back(td.m_multisig_k); |