Browse Source

Merge pull request #3804

ba51c7d Fix null pointer in IsTrusted() (Cozz Lovan)
0.10
Wladimir J. van der Laan 11 years ago
parent
commit
f5352da490
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 4
      src/wallet.h

4
src/wallet.h

@ -675,8 +675,10 @@ public: @@ -675,8 +675,10 @@ public:
{
// Transactions not sent by us: not trusted
const CWalletTx* parent = pwallet->GetWalletTx(txin.prevout.hash);
if (parent == NULL)
return false;
const CTxOut& parentOut = parent->vout[txin.prevout.n];
if (parent == NULL || !pwallet->IsMine(parentOut))
if (!pwallet->IsMine(parentOut))
return false;
}
return true;

Loading…
Cancel
Save