aboutsummaryrefslogtreecommitdiffstats
path: root/src/worker_util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2012-07-26 21:50:13 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2012-07-26 21:50:13 +0400
commite1a8ed50131891516f5da6e22aae69a306147d38 (patch)
tree61002cf909d2d41553b94b8ed654d0f2f3567a67 /src/worker_util.c
parent2e615083e475c7390c667695b9e659fa5ba4da5f (diff)
downloadrspamd-e1a8ed50131891516f5da6e22aae69a306147d38.tar.gz
rspamd-e1a8ed50131891516f5da6e22aae69a306147d38.zip
* Add lua worker type and lua worker bindings.
* Add lua utility library for basic utils. * Fixes lua_buffer code. Fix lua loading error. Added some other lua utility functions.
Diffstat (limited to 'src/worker_util.c')
-rw-r--r--src/worker_util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/worker_util.c b/src/worker_util.c
index ba4444485..976fe58c3 100644
--- a/src/worker_util.c
+++ b/src/worker_util.c
@@ -52,7 +52,9 @@ construct_task (struct rspamd_worker *worker)
new_task->worker = worker;
new_task->state = READ_COMMAND;
- new_task->cfg = worker->srv->cfg;
+ if (worker) {
+ new_task->cfg = worker->srv->cfg;
+ }
new_task->view_checked = FALSE;
#ifdef HAVE_CLOCK_GETTIME
# ifdef HAVE_CLOCK_PROCESS_CPUTIME_ID