commit b27f6bf: [Minor] Oops, ignore undetected

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Oct 7 11:42:06 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-10-07 12:40:17 +0100
URL: https://github.com/rspamd/rspamd/commit/b27f6bf4ad3ce633102076a24ff8b35805a38cf1 (HEAD -> master)

[Minor] Oops, ignore undetected

---
 src/libmime/message.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libmime/message.c b/src/libmime/message.c
index eeb53dc0d..8209626b4 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -816,7 +816,7 @@ rspamd_message_process_text_part_maybe (struct rspamd_task *task,
 	gboolean found_html = FALSE, found_txt = FALSE;
 	enum rspamd_action_type act;
 
-	if (IS_CT_TEXT (mime_part->ct) || (!mime_part->detected_type ||
+	if (IS_CT_TEXT (mime_part->ct) || (mime_part->detected_type &&
 									   strcmp (mime_part->detected_type, "text") == 0)) {
 		found_txt = TRUE;
 


More information about the Commits mailing list