aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-01-30 13:28:12 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-01-30 13:28:12 +0000
commit6288295f8e4c7807dba73cbdddd375f105ea5af6 (patch)
tree35e1d4b16680d73d93e1eda5d6faf2a432e95486
parentsimplewallet: show_transfers can now show just failed txes (diff)
downloadmonero-6288295f8e4c7807dba73cbdddd375f105ea5af6.tar.xz
rpc: add missing return on error when getting a tx
-rw-r--r--src/rpc/core_rpc_server.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index adcaf036d..4a6f8e671 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -224,6 +224,7 @@ namespace cryptonote
if(b.size() != sizeof(crypto::hash))
{
res.status = "Failed, size of data mismatch";
+ return true;
}
vh.push_back(*reinterpret_cast<const crypto::hash*>(b.data()));
}