From e77a2839b54fa2039bba468e8c09dbbbf19b150a Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Sat, 22 May 2021 20:31:58 -0700 Subject: [PATCH] Use HandleMissingData also in CheckSchnorrSignature --- src/script/interpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/interpreter.cpp b/src/script/interpreter.cpp index 3c3c3ac1a84..6c49d4a5ab5 100644 --- a/src/script/interpreter.cpp +++ b/src/script/interpreter.cpp @@ -1711,7 +1711,7 @@ bool GenericTransactionSignatureChecker::CheckSchnorrSignature(Spantxdata); + if (!this->txdata) return HandleMissingData(m_mdb); if (!SignatureHashSchnorr(sighash, execdata, *txTo, nIn, hashtype, sigversion, *this->txdata, m_mdb)) { return set_error(serror, SCRIPT_ERR_SCHNORR_SIG_HASHTYPE); }