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-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d58ae05bb7838e1fdae967752f06b0b2471a63f5;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: