Skip to content

Commit

Permalink
Fix undefined behavior in CanProvide() (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheQuantumPhysicist authored Jan 23, 2021
1 parent 8aaaf69 commit e552635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/scriptpubkeyman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ std::unique_ptr<SigningProvider> LegacyScriptPubKeyMan::GetSolvingProvider(const

bool LegacyScriptPubKeyMan::CanProvide(const CScript& script, SignatureData& sigdata)
{
bool isInvalid;
bool isInvalid = false;
isminetype ismine = IsMineInner(*this, script, isInvalid, IsMineSigVersion::TOP, /* recurse_scripthash= */ false);
if (ismine & ISMINE_ALL) {
// If ismine, it means we recognize keys or script ids in the script, or
Expand Down

0 comments on commit e552635

Please sign in to comment.