]> mj.ucw.cz Git - bouncer.git/commitdiff
Let fail_count be zeroed when entering probation
authorMartin Mares <mj@ucw.cz>
Mon, 7 Nov 2016 06:33:53 +0000 (07:33 +0100)
committerMartin Mares <mj@ucw.cz>
Mon, 7 Nov 2016 06:33:53 +0000 (07:33 +0100)
bouncer.c

index 03e739cde31afd8a101582dfea19b6a3021e8397..9544e5017ce48e4e5a0f2fc84a5c11e0b76b63d7 100644 (file)
--- a/bouncer.c
+++ b/bouncer.c
@@ -353,6 +353,7 @@ static void culprit_timer(struct main_timer *tm)
       msg(L_INFO, "Unbanned %s", AFMT(c->addr));
       culprit_set_state(c, STATE_PROBATION, probation_time);
       is_modify(0, c->addr);
+      c->fail_count = 0;
       break;
     default:
       ASSERT(0);