]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Disable all symbols if enable_groups is found in settings
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Jul 2016 18:51:29 +0000 (19:51 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Jul 2016 18:51:29 +0000 (19:51 +0100)
src/libserver/symbols_cache.c

index e9d3661149593c53f8c652b9d0174b92210ffec5..8182dbf5e35d2f78f46ecef03b0f6dc53bc90b5c 100644 (file)
@@ -1325,6 +1325,7 @@ rspamd_symbols_cache_process_settings (struct rspamd_task *task,
 
        if (def && enabled) {
                it = NULL;
+               rspamd_symbols_cache_disable_all_symbols (task, cache);
 
                while ((cur = ucl_iterate_object (enabled, &it, true)) != NULL) {
                        if (ucl_object_type (cur) == UCL_STRING) {