aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_trie.c
diff options
context:
space:
mode:
authorMikhail Galanin <mgalanin@mimecast.com>2018-09-10 11:02:47 +0100
committerMikhail Galanin <mgalanin@mimecast.com>2018-09-10 11:02:47 +0100
commit6990ef3daa64ad7ab9724dbb20cea92e243fb46a (patch)
tree6c08f3fa5f885c03ff719fb5fb9d9d41f48587d3 /src/lua/lua_trie.c
parented1c0fe1f58697d45d35d09f3635218e346c2f9c (diff)
parent8128b539535d3c8df974ac2fee7d673f5d3c5502 (diff)
downloadrspamd-6990ef3daa64ad7ab9724dbb20cea92e243fb46a.tar.gz
rspamd-6990ef3daa64ad7ab9724dbb20cea92e243fb46a.zip
Merge branch 'master' into rspamadm-coroutines
Diffstat (limited to 'src/lua/lua_trie.c')
-rw-r--r--src/lua/lua_trie.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_trie.c b/src/lua/lua_trie.c
index 16a8ace0c..e6a6052d4 100644
--- a/src/lua/lua_trie.c
+++ b/src/lua/lua_trie.c
@@ -262,9 +262,9 @@ lua_trie_search_mime (lua_State *L)
for (i = 0; i < task->text_parts->len; i ++) {
part = g_ptr_array_index (task->text_parts, i);
- if (!IS_PART_EMPTY (part) && part->content != NULL) {
- text = part->content->data;
- len = part->content->len;
+ if (!IS_PART_EMPTY (part) && part->utf_content != NULL) {
+ text = part->utf_content->data;
+ len = part->utf_content->len;
if (lua_trie_search_str (L, trie, text, len) != 0) {
found = TRUE;