Skip to content

Commit

Permalink
Fix UB in CQuorumBlockProcessor::GetCommitmentsFromBlock.
Browse files Browse the repository at this point in the history
  • Loading branch information
sproxet committed Jul 30, 2022
1 parent 738308b commit cf2b38b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llmq/quorums_blockprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit cf2b38b

Please sign in to comment.