diff options
author | Jaquee <jaquee.monero@gmail.com> | 2017-08-11 11:16:30 +0200 |
---|---|---|
committer | Jaquee <jaquee.monero@gmail.com> | 2017-08-11 11:16:30 +0200 |
commit | 20495b27e851439e4ea7e7036234de3717f5d5c0 (patch) | |
tree | fe648dd438200f708992c42061de7ff32fb5013f /src/simplewallet/simplewallet.cpp | |
parent | Merge pull request #2271 (diff) | |
download | monero-20495b27e851439e4ea7e7036234de3717f5d5c0.tar.xz |
simplewallet: fix possible privacy leak in import_key_images()
Diffstat (limited to '')
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 596c298d7..102a3cf31 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -4509,6 +4509,12 @@ bool simple_wallet::export_key_images(const std::vector<std::string> &args) //---------------------------------------------------------------------------------------------------- bool simple_wallet::import_key_images(const std::vector<std::string> &args) { + if (!m_trusted_daemon) + { + fail_msg_writer() << tr("this command requires a trusted daemon. Enable with --trusted-daemon"); + return true; + } + if (args.size() != 1) { fail_msg_writer() << tr("usage: import_key_images <filename>"); |