artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f0c896
)
stricter check for overfull tables in penalty record path
author
djm
<djm@openbsd.org>
Thu, 20 Jun 2024 00:18:05 +0000
(
00:18
+0000)
committer
djm
<djm@openbsd.org>
Thu, 20 Jun 2024 00:18:05 +0000
(
00:18
+0000)
usr.bin/ssh/srclimit.c
patch
|
blob
|
history
diff --git
a/usr.bin/ssh/srclimit.c
b/usr.bin/ssh/srclimit.c
index
4309526
..
8157ff0
100644
(file)
--- a/
usr.bin/ssh/srclimit.c
+++ b/
usr.bin/ssh/srclimit.c
@@
-403,7
+403,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);