aboutsummaryrefslogtreecommitdiffstats
path: root/src/cfg_xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cfg_xml.c')
-rw-r--r--src/cfg_xml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cfg_xml.c b/src/cfg_xml.c
index 6953edb3a..bb23dd641 100644
--- a/src/cfg_xml.c
+++ b/src/cfg_xml.c
@@ -1790,8 +1790,8 @@ rspamd_xml_end_element (GMarkupParseContext *context, const gchar *element_name,
CHECK_TAG ("classifier", FALSE);
if (res) {
ccf = ud->section_pointer;
- if (ccf->statfiles == NULL) {
- *error = g_error_new (xml_error_quark (), XML_PARAM_MISSING, "classifier cannot contains no statfiles");
+ if (ccf->statfiles == NULL || !check_classifier_statfiles (ccf)) {
+ *error = g_error_new (xml_error_quark (), XML_PARAM_MISSING, "classifier cannot contains no statfiles or statfiles of the same class");
ud->state = XML_ERROR;
return;
}