HomePhabricator

Fix a potential use after move

Description

Fix a potential use after move

Summary:
When checking the tx inputs with CheckInputs(), the signature check
count is expected to be 0 when pvChecks is non null. This diff fixes
the current implementation which used the check variable after a move
to increment the sig check count with 0.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D7943

Details

Provenance
FabienAuthored on Oct 15 2020, 19:14
FabienPushed on Oct 16 2020, 13:24
Reviewer
Restricted Project
Differential Revision
D7943: Fix a potential use after move
Parents
rABCa1d59f5a1455: Fix missing lock in the chain interface
Branches
Unknown
Tags
Unknown