aboutsummaryrefslogtreecommitdiffstats
path: root/src/smtp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-21 15:57:39 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-21 15:57:39 +0100
commitad5bf825b7f33bc10311673991f0cc888e69c0b1 (patch)
tree51aeb06ce4838ed4af7d591fc2903f4e549b6e93 /src/smtp.c
parent53e8a8b05b7f0696ce72ccfd347a35bb80f19570 (diff)
downloadrspamd-ad5bf825b7f33bc10311673991f0cc888e69c0b1.tar.gz
rspamd-ad5bf825b7f33bc10311673991f0cc888e69c0b1.zip
Refactor task functions.
Diffstat (limited to 'src/smtp.c')
-rw-r--r--src/smtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/smtp.c b/src/smtp.c
index 32e9826b0..2d36c0549 100644
--- a/src/smtp.c
+++ b/src/smtp.c
@@ -306,7 +306,7 @@ process_smtp_data (struct smtp_session *session)
/* Now mmap temp file if it is small enough */
session->temp_size = st.st_size;
if (session->ctx->max_size == 0 || st.st_size < (off_t)session->ctx->max_size) {
- session->task = construct_task (session->worker);
+ session->task = rspamd_task_new (session->worker);
session->task->resolver = session->resolver;
session->task->fin_callback = smtp_write_socket;
session->task->fin_arg = session;