From 13680409385e858351d1d7a05c5831c11c3903df Mon Sep 17 00:00:00 2001 From: Edward Hennis Date: Tue, 19 Sep 2017 18:30:28 -0400 Subject: [PATCH] [FOLD] Off-by-one error --- src/ripple/app/misc/HashRouter.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ripple/app/misc/HashRouter.h b/src/ripple/app/misc/HashRouter.h index 698e2d117d3..ce60d7fbc32 100644 --- a/src/ripple/app/misc/HashRouter.h +++ b/src/ripple/app/misc/HashRouter.h @@ -26,7 +26,6 @@ #include #include #include -#include namespace ripple { @@ -146,7 +145,7 @@ class HashRouter std::uint32_t recoverLimit) : suppressionMap_(clock) , holdTime_ (entryHoldTimeInSeconds) - , recoverLimit_ (std::max(recoverLimit, 1u)) + , recoverLimit_ (recoverLimit + 1u) { }