diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-09-24 14:26:07 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-09-24 14:26:07 +0100 |
commit | 60687c4a076ca10c26ebedc0caab1d0ca4563a70 (patch) | |
tree | 9984babdb3a025d3c59f3378ced7c55e8737859a /src/cfg_rcl.c | |
parent | 93de67cb66f3c4e4547ad616462a53d5957ab1e6 (diff) | |
download | rspamd-60687c4a076ca10c26ebedc0caab1d0ca4563a70.tar.gz rspamd-60687c4a076ca10c26ebedc0caab1d0ca4563a70.zip |
Fix unknown workers handling.
Diffstat (limited to 'src/cfg_rcl.c')
-rw-r--r-- | src/cfg_rcl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cfg_rcl.c b/src/cfg_rcl.c index fbe96bbc5..65c2e337d 100644 --- a/src/cfg_rcl.c +++ b/src/cfg_rcl.c @@ -390,6 +390,10 @@ rspamd_rcl_worker_handler (struct config_file *cfg, rspamd_cl_object_t *obj, wrk->ctx = wrk->worker->worker_init_func (); } } + else { + g_set_error (err, CFG_RCL_ERROR, EINVAL, "unknown worker type: %s", worker_type); + return FALSE; + } } else { g_set_error (err, CFG_RCL_ERROR, EINVAL, "undefined worker type"); |