aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2017-08-11 11:18:21 +0200
committerJaquee <jaquee.monero@gmail.com>2017-08-11 11:18:21 +0200
commit359517c7f5fc4c060e470c674b477e7a65f8d514 (patch)
treea96a84321e1872660bdec6274c49af36488860ee
parentsimplewallet: fix possible privacy leak in import_key_images() (diff)
downloadmonero-359517c7f5fc4c060e470c674b477e7a65f8d514.tar.xz
wallet_rpc_server: fix possible privacy leak in on_import_key_images()
-rw-r--r--src/wallet/wallet_rpc_server.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp
index f014c573a..133f93f92 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -1360,7 +1360,12 @@ namespace tools
er.message = "Command unavailable in restricted mode.";
return false;
}
-
+ if (!m_trusted_daemon)
+ {
+ er.code = WALLET_RPC_ERROR_CODE_UNKNOWN_ERROR;
+ er.message = "This command requires a trusted daemon.";
+ return false;
+ }
try
{
std::vector<std::pair<crypto::key_image, crypto::signature>> ski;