diff --git a/src/xrpld/app/paths/detail/PaySteps.cpp b/src/xrpld/app/paths/detail/PaySteps.cpp index 6c12514ab12..2d5a0b08a17 100644 --- a/src/xrpld/app/paths/detail/PaySteps.cpp +++ b/src/xrpld/app/paths/detail/PaySteps.cpp @@ -216,7 +216,11 @@ toStrand( if (hasAccount && (pe.getAccountID() == noAccount())) return {temBAD_PATH, Strand{}}; - if (hasMPT && (hasCurrency || hasAccount || hasIssuer)) + if (hasMPT && (hasCurrency || hasAccount)) + return {temBAD_PATH, Strand{}}; + + if (hasMPT && hasIssuer && + (pe.getIssuerID() != getMPTIssuer(pe.getMPTID()))) return {temBAD_PATH, Strand{}}; }