Fix auth handling during OfferCreate (RIPD-414)

This commit is contained in:
Nik Bougalis
2014-07-25 10:20:32 -07:00
committed by Vinnie Falco
parent 403f15dc48
commit 5df40bd746

View File

@@ -77,10 +77,10 @@ CreateOffer::checkAcceptAsset(IssueRef issue) const
// ordering. Determine which entry we need to access.
bool const canonical_gt (mTxnAccountID > issue.account);
bool const need_auth (trustLine->getFieldU32 (sfFlags) &
bool const is_authorized (trustLine->getFieldU32 (sfFlags) &
(canonical_gt ? lsfLowAuth : lsfHighAuth));
if (need_auth)
if (!is_authorized)
{
if (m_journal.debug) m_journal.debug <<
"delay: can't receive IOUs from issuer without auth.";