Browse Source

* fix f2b_jail_process()

master
Alex 'AdUser' Z 9 years ago
parent
commit
8c1b0ef5f5
  1. 5
      src/jail.c

5
src/jail.c

@ -195,8 +195,9 @@ f2b_jail_process(f2b_jail_t *jail) {
} }
/* this ip was seen before */ /* this ip was seen before */
addr->lastseen = now; addr->lastseen = now;
if (addr->banned && addr->bantime != now) { if (addr->banned) {
f2b_log_msg(log_warn, "jail '%s': ip %s was already banned", jail->name, matchbuf); if (addr->bantime != now)
f2b_log_msg(log_warn, "jail '%s': ip %s was already banned", jail->name, matchbuf);
continue; continue;
} }
f2b_matches_expire(&addr->matches, now - jail->findtime); f2b_matches_expire(&addr->matches, now - jail->findtime);

Loading…
Cancel
Save