]> source.dussan.org Git - rspamd.git/commitdiff
Fix encrypted fuzzy add processing.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 26 Oct 2015 18:51:39 +0000 (18:51 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 26 Oct 2015 18:51:39 +0000 (18:51 +0000)
src/plugins/fuzzy_check.c

index 2db7e8da70eb974ad711f2099997c95c4c0072a5..05a43af93485f4e98e2171e9faf6e8a66e080a28 100644 (file)
@@ -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 *));