]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Inverse logic
authorVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 1 Jul 2022 20:31:01 +0000 (21:31 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 1 Jul 2022 20:31:01 +0000 (21:31 +0100)
src/lua/lua_text.c

index 04a4169422afd7a01ffd9107892896cb2bb1b3ff..b6f0948c3879f7d75bdfc06e3cd910bf0446fdba 100644 (file)
@@ -357,12 +357,12 @@ lua_is_text_binary(struct rspamd_lua_text *t)
 
        if (rspamd_str_has_8bit(t->start, t->len)) {
                if (rspamd_fast_utf8_validate(t->start, t->len) == 0) {
-                       return true;
+                       return false;
                }
-               return false;
+               return true;
        }
 
-       return true;
+       return false;
 }