Skip to content

Commit

Permalink
upstream: stricter check for overfull tables in penalty record path
Browse files Browse the repository at this point in the history
OpenBSD-Commit-ID: 7df01e648a0723418c554e64a9f2b6d38db060a6
  • Loading branch information
djmdjm committed Jun 20, 2024
1 parent d9336d3 commit e9b6471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srclimit.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ srclimit_penalise(struct xaddr *addr, int penalty_type)
penalty_cfg.overflow_mode : penalty_cfg.overflow_mode6;
npenaltiesp = addr->af == AF_INET ? &npenalties4 : &npenalties6;
t = addr->af == AF_INET ? "ipv4" : "ipv6";
if (*npenaltiesp > (size_t)max_sources &&
if (*npenaltiesp >= (size_t)max_sources &&
overflow_mode == PER_SOURCE_PENALTY_OVERFLOW_DENY_ALL) {
verbose_f("%s penalty table full, cannot penalise %s for %s", t,
addrnetmask, reason);
Expand Down

0 comments on commit e9b6471

Please sign in to comment.