aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-07-12 20:28:15 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-07-12 20:28:15 -0500
commitfd3ff741644152ed559fcf79550435d3df75b764 (patch)
treeb6fd3e3688520bd07272983fbe0855ded78fd2ef /src
parentMerge pull request #5738 (diff)
parentwallet_rpc_server: fix get_bulk_payments with short payment ids (diff)
downloadmonero-fd3ff741644152ed559fcf79550435d3df75b764.tar.xz
Merge pull request #5746
3140a37 wallet_rpc_server: fix get_bulk_payments with short payment ids (moneromooo-monero)
Diffstat (limited to 'src')
-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
{