Avoid storing a reference passed to SignatureChecker constructors

This commit is contained in:
Pieter Wuille
2015-01-27 10:01:31 -04:00
parent 858809a33e
commit 9fddceda44
12 changed files with 36 additions and 36 deletions

View File

@@ -1076,7 +1076,7 @@ bool TransactionSignatureChecker::CheckSig(const vector<unsigned char>& vchSigIn
int nHashType = vchSig.back();
vchSig.pop_back();
uint256 sighash = SignatureHash(scriptCode, txTo, nIn, nHashType);
uint256 sighash = SignatureHash(scriptCode, *txTo, nIn, nHashType);
if (!VerifySignature(vchSig, pubkey, sighash))
return false;