]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: fix PerSourcePenalty incorrectly using "crash" penalty when
authordjm@openbsd.org <djm@openbsd.org>
Sun, 2 Mar 2025 22:44:00 +0000 (22:44 +0000)
committerDamien Miller <djm@mindrot.org>
Sun, 2 Mar 2025 22:44:34 +0000 (09:44 +1100)
LoginGraceTime was exceeded. Reported by irwin AT princeton.edu via bz3797

OpenBSD-Commit-ID: 1ba3e490a5a9451359618c550d995380af454d25

srclimit.c

index 33116fa52a94aa92a40c7b33b9ec456c7af3fb6d..c63a462e27836ffb36ceefb7cff0467c43694835 100644 (file)
@@ -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: