From d0fd4b42cbb067bcacf35b580721889aced9571a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 26 Oct 2015 18:51:39 +0000 Subject: [PATCH] Fix encrypted fuzzy add processing. --- src/plugins/fuzzy_check.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 2db7e8da7..05a43af93 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -1475,8 +1475,8 @@ fuzzy_process_handler (struct rspamd_http_connection_entry *conn_ent, /* Allocate message from string */ /* XXX: what about encrypted messsages ? */ - task->msg.begin = msg->body->str; - task->msg.len = msg->body->len; + task->msg.begin = msg->body_buf.begin; + task->msg.len = msg->body_buf.len; saved = rspamd_mempool_alloc0 (task->task_pool, sizeof (gint)); err = rspamd_mempool_alloc0 (task->task_pool, sizeof (GError *)); -- 2.39.5