Avoid storing a reference passed to SignatureChecker constructors

Rebased-From: 9fddceda44
Github-Pull: #5719
This commit is contained in:
Pieter Wuille 2015-01-27 10:01:31 -04:00 committed by Wladimir J. van der Laan
parent 1bbad80bf4
commit 2448d34298
No known key found for this signature in database
GPG key ID: 74810B012346C9A6
12 changed files with 36 additions and 36 deletions

View file

@ -1075,7 +1075,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;