aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-02-15 10:37:50 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-02-15 10:37:50 +0000
commit5ee9d4f25d79dfc1197935d301ed4951b3c8a53e (patch)
tree2743481e0bac4ab877a3605711e2d9729c0d6ab1 /src
parent577a34501b40fcc5982c5ddfc326ddf1c66b13de (diff)
downloadrspamd-5ee9d4f25d79dfc1197935d301ed4951b3c8a53e.tar.gz
rspamd-5ee9d4f25d79dfc1197935d301ed4951b3c8a53e.zip
[Minor] Treat 'ungrouped' group specially
Diffstat (limited to 'src')
-rw-r--r--src/libserver/cfg_utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index 20f4dd163..5d0d94096 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -1449,6 +1449,9 @@ rspamd_config_new_symbol (struct rspamd_config *cfg, const gchar *symbol,
/* Search for symbol group */
if (group == NULL) {
group = "ungrouped";
+ }
+
+ if (strcmp (group, "ungrouped") == 0) {
sym_def->flags |= RSPAMD_SYMBOL_FLAG_UNGROUPPED;
}