aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/cfg_rcl.c4
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");