diff --git a/src/cpp/ripple/Pathfinder.cpp b/src/cpp/ripple/Pathfinder.cpp index 8bd64edbfb..5360c7704b 100644 --- a/src/cpp/ripple/Pathfinder.cpp +++ b/src/cpp/ripple/Pathfinder.cpp @@ -139,8 +139,8 @@ Pathfinder::Pathfinder(Ledger::ref ledger, mLedger(ledger) { - if ((mSrcAccountID == mDstAccountID) && (mSrcCurrencyID == mDstAmount.getCurrency())) - { // no need to send to same account with same currency + if (((mSrcAccountID == mDstAccountID) && (mSrcCurrencyID == mDstAmount.getCurrency())) || mDstAmount.isZero()) + { // no need to send to same account with same currency, must send non-zero bValid = false; return; }