diff --git a/src/ripple/app/hook/Guard.h b/src/ripple/app/hook/Guard.h index 8abab7fb5..524baf133 100644 --- a/src/ripple/app/hook/Guard.h +++ b/src/ripple/app/hook/Guard.h @@ -258,7 +258,7 @@ check_guard( SIGNED_LEB(); } - uint32_t iteration_bound = 1; + uint32_t iteration_bound = (current->parent == 0 ? 1 : current->parent->iteration_bound); if (instr == 0x03U) { // now look for the guard call