aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_rcl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-08-06 15:30:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-08-06 15:30:10 +0100
commit2a5e10cd472278a35dc4a7980a8130bcb9ca6430 (patch)
treefb960ce0e37eaca6788f27f620547231fc0a5a22 /src/libserver/cfg_rcl.c
parent2c33c006c2b7f8cea8bbbb157c39268705211e8a (diff)
downloadrspamd-2a5e10cd472278a35dc4a7980a8130bcb9ca6430.tar.gz
rspamd-2a5e10cd472278a35dc4a7980a8130bcb9ca6430.zip
Hide workers and modules definitions.
Diffstat (limited to 'src/libserver/cfg_rcl.c')
-rw-r--r--src/libserver/cfg_rcl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index 46dd1b60f..ef2644dd9 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -29,6 +29,7 @@
#include "lua/lua_common.h"
#include "expression.h"
#include "composites.h"
+#include "libserver/worker_util.h"
struct rspamd_rcl_default_handler_data {
struct rspamd_rcl_struct_parser pd;
@@ -576,7 +577,7 @@ rspamd_rcl_worker_handler (rspamd_mempool_t *pool, const ucl_object_t *obj,
qtype = g_quark_try_string (worker_type);
if (qtype != 0) {
wrk = rspamd_config_new_worker (cfg, NULL);
- wrk->worker = rspamd_get_worker_by_type (qtype);
+ wrk->worker = rspamd_get_worker_by_type (cfg, qtype);
if (wrk->worker == NULL) {
g_set_error (err,
CFG_RCL_ERROR,