diff --git a/src/cpp/ripple/RippleCalc.cpp b/src/cpp/ripple/RippleCalc.cpp index 8d0a7df444..9be60945a5 100644 --- a/src/cpp/ripple/RippleCalc.cpp +++ b/src/cpp/ripple/RippleCalc.cpp @@ -2667,6 +2667,16 @@ void RippleCalc::pathNext(PathState::ref psrCur, const bool bMultiQuality, const lesCurrent = lesCheckpoint.duplicate(); // Restore from checkpoint. + for (unsigned int uIndex = psrCur->vpnNodes.size(); uIndex--;) + { + PaymentNode& pnCur = psrCur->vpnNodes[uIndex]; + + pnCur.saRevRedeem.zero(); + pnCur.saRevIssue.zero(); + pnCur.saRevDeliver.zero(); + pnCur.saFwdDeliver.zero(); + } + psrCur->terStatus = calcNodeRev(uLast, *psrCur, bMultiQuality); cLog(lsDEBUG) << "pathNext: Path after reverse: " << psrCur->getJson();