From: Vsevolod Stakhov Date: Mon, 26 Oct 2015 18:51:39 +0000 (+0000) Subject: Fix encrypted fuzzy add processing. X-Git-Tag: 1.0.8~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d0fd4b42cbb067bcacf35b580721889aced9571a;p=rspamd.git Fix encrypted fuzzy add processing. --- 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 *));