aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-07-09 14:39:10 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-07-09 14:39:44 +0000
commit3140a378da43ae71c26304543bd9631f9fcb252d (patch)
tree2d791cbdb63d113bc4b17cd373c76490514e5e45 /src/wallet/wallet_rpc_server.cpp
parentMerge pull request #5663 (diff)
downloadmonero-3140a378da43ae71c26304543bd9631f9fcb252d.tar.xz
wallet_rpc_server: fix get_bulk_payments with short payment ids
Diffstat (limited to 'src/wallet/wallet_rpc_server.cpp')
-rw-r--r--src/wallet/wallet_rpc_server.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp
index 8b8d832dc..0e2a34470 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -1745,6 +1745,11 @@ namespace tools
else if (payment_id_str.size() == 2 * sizeof(payment_id8))
{
r = epee::string_tools::hex_to_pod(payment_id_str, payment_id8);
+ if (r)
+ {
+ memcpy(payment_id.data, payment_id8.data, 8);
+ memset(payment_id.data + 8, 0, 24);
+ }
}
else
{