mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-23 20:52:54 +00:00
* Fix Sys_Milliseconds wrapping causing the flood protection code to
malfunction and block all traffic (reported by bubu^)
This commit is contained in:
parent
6516be2fed
commit
ab9b08e584
1 changed files with 2 additions and 1 deletions
|
@ -444,7 +444,8 @@ static leakyBucket_t *SVC_BucketForAddress( netadr_t address, int burst, int per
|
|||
interval = now - bucket->lastTime;
|
||||
|
||||
// Reclaim expired buckets
|
||||
if ( bucket->lastTime > 0 && interval > ( burst * period ) ) {
|
||||
if ( bucket->lastTime > 0 && ( interval > ( burst * period ) ||
|
||||
interval < 0 ) ) {
|
||||
if ( bucket->prev != NULL ) {
|
||||
bucket->prev->next = bucket->next;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue