]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Grrr, fix operator
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 18 Nov 2019 12:20:26 +0000 (12:20 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 18 Nov 2019 12:20:26 +0000 (12:20 +0000)
src/libmime/scan_result.c

index 23964c88e17e71c30ce69771075a884cb9b9b403..c7c2647d2edca7a1fd59dc7850973e2e3c014e47 100644 (file)
@@ -529,7 +529,7 @@ rspamd_task_add_result_option (struct rspamd_task *task,
 
                vlen = strlen (val);
 
-               if (rspamd_fast_utf8_validate (val, vlen) == 0) {
+               if (rspamd_fast_utf8_validate (val, vlen) != 0) {
                        opt_cpy = rspamd_str_make_utf_valid (val, vlen, &vlen,
                                        task->task_pool);
                        val = opt_cpy;