]> source.dussan.org Git - rspamd.git/commitdiff
* Set resolver inside task
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 12 Jul 2010 12:11:17 +0000 (16:11 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 12 Jul 2010 12:11:17 +0000 (16:11 +0400)
src/smtp.c

index 4108d56e4cb4d3a9aa811ef4fdfa969caebff18f..e8b6023bbb4e732be72abf64ae28c6e3ae9583ca 100644 (file)
@@ -373,6 +373,7 @@ process_smtp_data (struct smtp_session *session)
        session->temp_size = st.st_size;
        if (session->ctx->max_size == 0 || st.st_size < session->ctx->max_size) {
                session->task = construct_task (session->worker);
+               session->task->resolver = session->resolver;
                session->task->fin_callback = smtp_write_socket;
                session->task->fin_arg = session;
                session->task->msg = memory_pool_alloc (session->pool, sizeof (f_str_t));