mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix null pointer in TransactionEninge.
This commit is contained in:
@@ -448,9 +448,10 @@ TransactionEngineResult TransactionEngine::applyTransaction(const SerializedTran
|
||||
// If are only forwarding, due to resource limitations, we might verifying only some transactions, this would be probablistic.
|
||||
|
||||
STAmount saSrcBalance;
|
||||
uint32 t_seq = txn.getSequence();
|
||||
LedgerStateParms lspRoot = lepNONE;
|
||||
SLE::pointer sleSrc = mLedger->getAccountRoot(lspRoot, srcAccountID);
|
||||
uint32 t_seq = txn.getSequence();
|
||||
LedgerStateParms lspRoot = lepNONE;
|
||||
SLE::pointer sleSrc = mLedger->getAccountRoot(lspRoot, srcAccountID);
|
||||
bool bHaveAuthKey = false;
|
||||
|
||||
if (!sleSrc)
|
||||
{
|
||||
@@ -461,10 +462,9 @@ TransactionEngineResult TransactionEngine::applyTransaction(const SerializedTran
|
||||
else
|
||||
{
|
||||
saSrcBalance = sleSrc->getIValueFieldAmount(sfBalance);
|
||||
bHaveAuthKey = sleSrc->getIFieldPresent(sfAuthorizedKey);
|
||||
}
|
||||
|
||||
bool bHaveAuthKey = sleSrc->getIFieldPresent(sfAuthorizedKey);
|
||||
|
||||
// Check if account cliamed.
|
||||
if (terSUCCESS == result)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user