]> source.dussan.org Git - rspamd.git/commitdiff
Fix precendence for ! and &
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 8 Jan 2016 15:46:37 +0000 (15:46 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 8 Jan 2016 15:46:37 +0000 (15:46 +0000)
src/libstat/stat_process.c

index 78456018acc604ca6c3fa9e387db44692feec24a..45a32b57c78f39eacb7c11237dccb995230acb45 100644 (file)
@@ -521,7 +521,7 @@ rspamd_stat_backends_learn (struct rspamd_stat_ctx *st_ctx,
                                continue;
                        }
 
-                       if (!task->flags & RSPAMD_TASK_FLAG_UNLEARN) {
+                       if (!(task->flags & RSPAMD_TASK_FLAG_UNLEARN)) {
                                if (!!spam != !!st->stcf->is_spam) {
                                        /* If we are not unlearning, then do not touch another class */
                                        continue;