gods

a simple blocklist for ssh
Log | Files | Refs | README | LICENSE

commit 32c35de205805b3d672e6fed31c7f733d9cec75c
parent 308f693c2d7a1b1f586154b5ede489ce8816c04b
Author: Naveen Narayanan <zerous@nocebo.space>
Date:   Sat, 23 Oct 2021 11:48:13 +0200

Use double instead of time_t for ban

pow() and difftime() returns double.

Diffstat:
Mattack.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/attack.c b/attack.c @@ -43,7 +43,7 @@ islogin(char *constat) int isexpire(struct attacker *a) { - time_t ban; + double ban; ban = pow(3, a->nban) * 60;