]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Groups are now case insensitive
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 12 Jul 2016 16:06:51 +0000 (17:06 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 12 Jul 2016 16:06:51 +0000 (17:06 +0100)
src/libserver/cfg_utils.c

index 7967b297fa2373648d02ea4a9f92744c7317eda7..a38171475379941673fcafc2155262342854b046 100644 (file)
@@ -876,7 +876,7 @@ rspamd_config_new_metric (struct rspamd_config *cfg, struct metric *c,
                c = rspamd_mempool_alloc0 (cfg->cfg_pool, sizeof (struct metric));
                c->grow_factor = 1.0;
                c->symbols = g_hash_table_new (rspamd_str_hash, rspamd_str_equal);
-               c->groups = g_hash_table_new (rspamd_str_hash, rspamd_str_equal);
+               c->groups = g_hash_table_new (rspamd_strcase_hash, rspamd_strcase_equal);
 
                for (i = METRIC_ACTION_REJECT; i < METRIC_ACTION_MAX; i++) {
                        c->actions[i].score = NAN;