From: djm@openbsd.org Date: Sun, 2 Mar 2025 22:44:00 +0000 (+0000) Subject: upstream: fix PerSourcePenalty incorrectly using "crash" penalty when X-Git-Tag: V_10_0_P1~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6bba67e6c31d268480773e4fed16d0a32b4218e;p=thirdparty%2Fopenssh-portable.git upstream: fix PerSourcePenalty incorrectly using "crash" penalty when LoginGraceTime was exceeded. Reported by irwin AT princeton.edu via bz3797 OpenBSD-Commit-ID: 1ba3e490a5a9451359618c550d995380af454d25 --- diff --git a/srclimit.c b/srclimit.c index 33116fa52..c63a462e2 100644 --- a/srclimit.c +++ b/srclimit.c @@ -386,7 +386,7 @@ srclimit_penalise(struct xaddr *addr, int penalty_type) reason = "penalty: connection prohibited by RefuseConnection"; break; case SRCLIMIT_PENALTY_GRACE_EXCEEDED: - penalty_secs = penalty_cfg.penalty_crash; + penalty_secs = penalty_cfg.penalty_grace; reason = "penalty: exceeded LoginGraceTime"; break; default: