aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-12-20 09:19:31 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-12-20 09:19:31 +0000
commit6abb04609d54b45ba7ac285061acdeb122ad0b4c (patch)
tree488473c46e4a8249ce7101a1836cb41779515320
parent714faa2b804507f622d4780be646eaf8146a166d (diff)
downloadrspamd-6abb04609d54b45ba7ac285061acdeb122ad0b4c.tar.gz
rspamd-6abb04609d54b45ba7ac285061acdeb122ad0b4c.zip
[Minor] Core: Fix one more issue in content_type_has_param
-rw-r--r--src/libmime/mime_expressions.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libmime/mime_expressions.c b/src/libmime/mime_expressions.c
index 3ab8cee32..17a42a128 100644
--- a/src/libmime/mime_expressions.c
+++ b/src/libmime/mime_expressions.c
@@ -1792,12 +1792,16 @@ rspamd_content_type_has_param (struct rspamd_task * task,
RSPAMD_FTOK_FROM_STR (&lit, "charset");
if (rspamd_ftok_equal (&srch, &lit)) {
- return cur_part->ct->charset.len > 0;
+ if (cur_part->ct->charset.len > 0) {
+ return TRUE;
+ }
}
RSPAMD_FTOK_FROM_STR (&lit, "boundary");
if (rspamd_ftok_equal (&srch, &lit)) {
- return cur_part->ct->orig_boundary.len > 0;
+ if (cur_part->ct->boundary.len > 0) {
+ return TRUE;
+ }
}
if (cur_part->ct->attrs) {