From cf2b38bfdf80f2f91f8c6ed3749f1ef240f040c5 Mon Sep 17 00:00:00 2001 From: sproxet Date: Sat, 30 Jul 2022 17:40:00 +0700 Subject: [PATCH] Fix UB in CQuorumBlockProcessor::GetCommitmentsFromBlock. --- src/llmq/quorums_blockprocessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llmq/quorums_blockprocessor.cpp b/src/llmq/quorums_blockprocessor.cpp index c24170c283..c9a16a0b75 100644 --- a/src/llmq/quorums_blockprocessor.cpp +++ b/src/llmq/quorums_blockprocessor.cpp @@ -321,7 +321,7 @@ bool CQuorumBlockProcessor::GetCommitmentsFromBlock(const CBlock& block, const C return state.DoS(100, false, REJECT_INVALID, "bad-qc-dup"); } - ret.emplace((Consensus::LLMQType)qc.commitment.llmqType, std::move(qc.commitment)); + ret.emplace((Consensus::LLMQType)qc.commitment.llmqType, qc.commitment); } }