From: Vsevolod Stakhov Date: Fri, 8 Jan 2016 15:46:37 +0000 (+0000) Subject: Fix precendence for ! and & X-Git-Tag: 1.1.0~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4dbec3c0d4502478a15e6811bf9243d66f516463;p=thirdparty%2Frspamd.git Fix precendence for ! and & --- diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index 78456018ac..45a32b57c7 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -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;