Skip to content

Commit

Permalink
[FOLD] Off-by-one error
Browse files Browse the repository at this point in the history
  • Loading branch information
ximinez committed Sep 19, 2017
1 parent 52f6a8c commit 1368040
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ripple/app/misc/HashRouter.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <ripple/basics/UnorderedContainers.h>
#include <ripple/beast/container/aged_unordered_map.h>
#include <boost/optional.hpp>
#include <functional>

namespace ripple {

Expand Down Expand Up @@ -146,7 +145,7 @@ class HashRouter
std::uint32_t recoverLimit)
: suppressionMap_(clock)
, holdTime_ (entryHoldTimeInSeconds)
, recoverLimit_ (std::max(recoverLimit, 1u))
, recoverLimit_ (recoverLimit + 1u)
{
}

Expand Down

0 comments on commit 1368040

Please sign in to comment.