diff options
Diffstat (limited to 'src/smtp.c')
-rw-r--r-- | src/smtp.c | 2 |
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; |