]> mj.ucw.cz Git - bouncer.git/commitdiff
Change setting of fail_count to get nicer debug messages
authorMartin Mares <mj@ucw.cz>
Tue, 8 Nov 2016 19:07:48 +0000 (20:07 +0100)
committerMartin Mares <mj@ucw.cz>
Tue, 8 Nov 2016 19:07:48 +0000 (20:07 +0100)
bouncer.c

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