Skip to content

Commit

Permalink
upstream: fix PerSourcePenalty incorrectly using "crash" penalty when
Browse files Browse the repository at this point in the history
LoginGraceTime was exceeded. Reported by irwin AT princeton.edu via bz3797

OpenBSD-Commit-ID: 1ba3e490a5a9451359618c550d995380af454d25
  • Loading branch information
djmdjm committed Mar 2, 2025
1 parent 38d69fe commit b6bba67
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 @@ -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:
Expand Down

0 comments on commit b6bba67

Please # to comment.