From: Vsevolod Stakhov Date: Wed, 23 Sep 2009 11:45:00 +0000 (+0400) Subject: * Another mistake in task object initialization X-Git-Tag: 0.2.7~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9ad9c9865c70926cb0398699b0170f744e861f3c;p=rspamd.git * Another mistake in task object initialization --- diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 4001a9744..ef8664ff2 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -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) {