diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2015-01-27 10:01:31 -0400 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-02-03 08:52:13 +0100 |
commit | 2448d34298c12a8ef6e21788db5e70ffb554d8b2 (patch) | |
tree | 4a12aaa3a4a2aee9914660f8478acfd45e999ef8 /src/script/interpreter.cpp | |
parent | 1bbad80bf4a939bcacd419f19e46a12a5baa6174 (diff) | |
download | bitcoin-2448d34298c12a8ef6e21788db5e70ffb554d8b2.tar.xz |
Avoid storing a reference passed to SignatureChecker constructors
Rebased-From: 9fddceda44fb5592be179d783f0e5ac616c51c0d
Github-Pull: #5719
Diffstat (limited to 'src/script/interpreter.cpp')
-rw-r--r-- | src/script/interpreter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/interpreter.cpp b/src/script/interpreter.cpp index 58604de88c..41a0e1c490 100644 --- a/src/script/interpreter.cpp +++ b/src/script/interpreter.cpp @@ -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; |