aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-08-15 20:53:58 +0200
committerRiccardo Spagni <ric@spagni.net>2017-08-15 20:53:58 +0200
commita861cbb465a63d63a6ab0cb7e6ebb67c41a0d394 (patch)
tree6fbe9256067fe9ac36cd724c596287e1ee63437e /src/wallet/wallet_rpc_server.cpp
parentMerge pull request #2276 (diff)
parentwallet_rpc_server: fix possible privacy leak in on_import_key_images() (diff)
downloadmonero-a861cbb465a63d63a6ab0cb7e6ebb67c41a0d394.tar.xz
Merge pull request #2279
359517c7 wallet_rpc_server: fix possible privacy leak in on_import_key_images() (Jaquee) 20495b27 simplewallet: fix possible privacy leak in import_key_images() (Jaquee)
Diffstat (limited to 'src/wallet/wallet_rpc_server.cpp')
-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 da55c2141..77911e9a7 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -1364,7 +1364,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;