aboutsummaryrefslogtreecommitdiffstats
path: root/src/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-07-18 17:55:27 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-07-18 17:55:27 +0400
commitbada3312a8c1c6cdca474e99c74babb759e65823 (patch)
tree682cad72bd10ad6f881622c8919986aa310c6616 /src/cfg_utils.c
parent80422de224dae1d68b3ff9e9c3c6abf780367e36 (diff)
downloadrspamd-bada3312a8c1c6cdca474e99c74babb759e65823.tar.gz
rspamd-bada3312a8c1c6cdca474e99c74babb759e65823.zip
Fix statfiles class determination euristic.
Fix call of classifier pre-callback.
Diffstat (limited to 'src/cfg_utils.c')
-rw-r--r--src/cfg_utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cfg_utils.c b/src/cfg_utils.c
index a34084cce..da1fe34a1 100644
--- a/src/cfg_utils.c
+++ b/src/cfg_utils.c
@@ -1051,7 +1051,7 @@ gboolean
check_classifier_statfiles (struct classifier_config *cf)
{
struct statfile *st;
- gboolean has_other = FALSE, cur_class;
+ gboolean has_other = FALSE, res = FALSE, cur_class;
GList *cur;
/* First check classes directly */
@@ -1093,14 +1093,14 @@ check_classifier_statfiles (struct classifier_config *cf)
}
else {
if (cur_class != st->is_spam) {
- return TRUE;
+ res = TRUE;
}
}
cur = g_list_next (cur);
}
- return FALSE;
+ return res;
}
/*