]> source.dussan.org Git - rspamd.git/commitdiff
* Another mistake in task object initialization
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Wed, 23 Sep 2009 11:45:00 +0000 (15:45 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Wed, 23 Sep 2009 11:45:00 +0000 (15:45 +0400)
src/plugins/fuzzy_check.c

index 4001a9744879b22e655e8ffacf1fbee8e9adc69e..ef8664ff2b1d54acf0584e15fba58e3f69d6068b 100644 (file)
@@ -384,8 +384,11 @@ fuzzy_process_handler (struct controller_session *session, f_str_t *in)
        task = construct_task (session->worker);
        session->other_data = task;
        session->state = STATE_WAIT;
+       
+       task->msg = memory_pool_alloc (task->task_pool, sizeof (f_str_t));
+       task->msg->begin = in->begin;
+       task->msg->len = in->len;
 
-       task->msg = in;
        saved = memory_pool_alloc0 (session->session_pool, sizeof (int));
        r = process_message (task);
        if (r == -1) {