Correct issue where flood detection could become unreliable

The static 'pos' variable in check_flooding() would not stay in sync with the number of entries in
flood_list after clean_flood_list() was called.  This meant that check_flooding() would always end up
removing all previous entries if it tried to add a new one.

Fix this by removing the tracking of number of flood_list entries, and just removing stale ones (older
than /SET FLOOD_RATE).
This commit is contained in:
Kevin Easton
2016-11-26 00:08:59 +11:00
parent 966f1c6c27
commit 21a12c004b
3 changed files with 50 additions and 94 deletions

View File

@@ -1,5 +1,7 @@
[Changes 1.2.2]
* Correct issue where flood detection could become unreliable. (caf)
* Cast check_ext_mail and check_ext_mail_status function pointers to the
correct type before using them. This might have caused a problem with
the qmail plugin on 64 bit architectures. (caf)