summaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-23 15:36:31 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-23 15:36:31 +0000
commit8ebc43f86166fd121d9634349dfca873cb92278c (patch)
tree33a8c5843dbd3426fb16c0fd591d3f5343c764df /src/libserver/cfg_utils.c
parent8a05515078bc8fd3d642778fcae0d005a38ec7b0 (diff)
downloadrspamd-8ebc43f86166fd121d9634349dfca873cb92278c.tar.gz
rspamd-8ebc43f86166fd121d9634349dfca873cb92278c.zip
Rework classifiers configuration and naming.
Now it is possible to register multiple classifiers with the same type.
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r--src/libserver/cfg_utils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index 3a0186c89..fef983758 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -29,7 +29,6 @@
#include "main.h"
#include "uthash_strcase.h"
#include "filter.h"
-#include "classifiers.h"
#include "lua/lua_common.h"
#include "kvstorage_config.h"
#include "map.h"
@@ -681,7 +680,7 @@ rspamd_config_find_classifier (struct rspamd_config *cfg, const gchar *name)
while (cur) {
cf = cur->data;
- if (g_ascii_strcasecmp (cf->classifier->name, name) == 0) {
+ if (g_ascii_strcasecmp (cf->name, name) == 0) {
return cf;
}