diff options
author | laanwj <126646+laanwj@users.noreply.github.com> | 2022-05-30 19:48:04 +0200 |
---|---|---|
committer | laanwj <126646+laanwj@users.noreply.github.com> | 2022-05-30 19:48:10 +0200 |
commit | 34cb63e8959730c9f4b3a03e0841f16c099f8a42 (patch) | |
tree | 115f32ffe934225f19630f79eab21c379e63d8cc /src | |
parent | 04fdd644b43af26dd8dc1dda255db16b4b7bf8e6 (diff) | |
parent | 7fcac96597218691724002c2b8ecb3dbcf60bf06 (diff) |
Merge bitcoin/bitcoin#25242: [22.x] rpc: Capture potentially large UniValue by ref for rpcdoccheck
7fcac96597218691724002c2b8ecb3dbcf60bf06 rpc: Capture potentially large UniValue by ref for rpcdoccheck (Martin Zumsande)
Pull request description:
ACKs for top commit:
fanquake:
ACK 7fcac96597218691724002c2b8ecb3dbcf60bf06
Tree-SHA512: e1e321ce49f5696d1b08d4a9cf77bdc90bdeedbe776d19fe13443d898b966c046593d20758376db4edb5baf17cb925a2ff21201889af977456c18cc43094a683
Diffstat (limited to 'src')
-rw-r--r-- | src/rpc/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/util.cpp b/src/rpc/util.cpp index 2059628b54..76f63546da 100644 --- a/src/rpc/util.cpp +++ b/src/rpc/util.cpp @@ -573,7 +573,7 @@ UniValue RPCHelpMan::HandleRequest(const JSONRPCRequest& request) const throw std::runtime_error(ToString()); } const UniValue ret = m_fun(*this, request); - CHECK_NONFATAL(std::any_of(m_results.m_results.begin(), m_results.m_results.end(), [ret](const RPCResult& res) { return res.MatchesType(ret); })); + CHECK_NONFATAL(std::any_of(m_results.m_results.begin(), m_results.m_results.end(), [&ret](const RPCResult& res) { return res.MatchesType(ret); })); return ret; } |