mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix auth handling during OfferCreate (RIPD-414)
This commit is contained in:
committed by
Vinnie Falco
parent
403f15dc48
commit
5df40bd746
@@ -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.";
|
||||
|
||||
Reference in New Issue
Block a user