]> source.dussan.org Git - rspamd.git/commitdiff
Fix unknown workers handling.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Sep 2013 13:26:07 +0000 (14:26 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Sep 2013 13:26:07 +0000 (14:26 +0100)
src/cfg_rcl.c

index fbe96bbc546ea9e94beac1620d1194a9eab80843..65c2e337ddfd7624c6947dd92901806be2673906 100644 (file)
@@ -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");