From: Timo Sirainen Date: Sat, 20 Feb 2010 07:32:13 +0000 (+0200) Subject: anvil: Fixed penalty "last update" tracking. X-Git-Tag: 2.0.beta3~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c829a47fe0dc63400cbd54a1e6d2e209ee2deebc;p=thirdparty%2Fdovecot%2Fcore.git anvil: Fixed penalty "last update" tracking. --HG-- branch : HEAD --- diff --git a/src/anvil/penalty.c b/src/anvil/penalty.c index 572d9a7720..f258b00e88 100644 --- a/src/anvil/penalty.c +++ b/src/anvil/penalty.c @@ -215,6 +215,8 @@ void penalty_inc(struct penalty *penalty, const char *ident, if (diff >= (1 << LAST_UPDATE_BITS)) { rec->last_update = (1 << LAST_UPDATE_BITS) - 1; rec->last_penalty = ioloop_time - rec->last_update; + } else { + rec->last_update = diff; } DLLIST2_APPEND(&penalty->oldest, &penalty->newest, rec);