Fix crash on txn against non-existent account.

This commit is contained in:
JoelKatz
2012-08-30 08:59:25 -07:00
parent f63d9df60b
commit 1813e8365d

View File

@@ -1239,10 +1239,10 @@ TER TransactionEngine::applyTransaction(const SerializedTransaction& txn,
terResult = tefPAST_SEQ;
}
}
mTxnAccount->setIFieldU32(sfLastSignedSeq, mLedger->getLedgerSeq());
if (tesSUCCESS == terResult)
{
mTxnAccount->setIFieldU32(sfLastSignedSeq, mLedger->getLedgerSeq());
entryModify(mTxnAccount);
switch (txn.getTxnType())