it = g_ptr_array_index (cache->items_by_id, i);
total_hits += it->st->total_hits;
- if (!(it->type & (SYMBOL_TYPE_PREFILTER|SYMBOL_TYPE_POSTFILTER|SYMBOL_TYPE_COMPOSITE))) {
+ if (!(it->type & (SYMBOL_TYPE_PREFILTER|SYMBOL_TYPE_POSTFILTER
+ |SYMBOL_TYPE_COMPOSITE|SYMBOL_TYPE_CLASSIFIER))) {
g_ptr_array_add (ord->d, it);
}
}
skip = FALSE;
if (!(cl->cfg->flags & RSPAMD_FLAG_CLASSIFIER_NO_BACKEND)) {
- for (j = 0; j < cl->statfiles_ids->len; i++) {
- id = g_array_index (cl->statfiles_ids, gint, i);
+ for (j = 0; j < cl->statfiles_ids->len; j++) {
+ id = g_array_index (cl->statfiles_ids, gint, j);
bk_run = g_ptr_array_index (task->stat_runtimes, id);
if (bk_run == NULL) {