summaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.c
diff options
context:
space:
mode:
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;
}