aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/rspamd_symcache.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-15 12:20:29 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-15 12:20:29 +0100
commit53e5867c0a79c5bbe93c84003b8dc0793795312b (patch)
tree706b2a6ebbbb980db54d834056f9bc7b06ddd866 /src/libserver/rspamd_symcache.c
parentab3698b6fa4613ea34bc3ad52c8cfcea9418c870 (diff)
downloadrspamd-53e5867c0a79c5bbe93c84003b8dc0793795312b.tar.gz
rspamd-53e5867c0a79c5bbe93c84003b8dc0793795312b.zip
[Project] Allow to set allowed and forbidden ids for symbols
Diffstat (limited to 'src/libserver/rspamd_symcache.c')
-rw-r--r--src/libserver/rspamd_symcache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libserver/rspamd_symcache.c b/src/libserver/rspamd_symcache.c
index d1d56ec11..3560957af 100644
--- a/src/libserver/rspamd_symcache.c
+++ b/src/libserver/rspamd_symcache.c
@@ -3026,7 +3026,7 @@ rspamd_symcache_set_allowed_settings_ids (struct rspamd_symcache *cache,
{
struct rspamd_symcache_item *item;
- item = rspamd_symcache_find_filter (cache, symbol, true);
+ item = rspamd_symcache_find_filter (cache, symbol, false);
if (item == NULL) {
return false;
@@ -3066,7 +3066,7 @@ rspamd_symcache_set_forbidden_settings_ids (struct rspamd_symcache *cache,
{
struct rspamd_symcache_item *item;
- item = rspamd_symcache_find_filter (cache, symbol, true);
+ item = rspamd_symcache_find_filter (cache, symbol, false);
if (item == NULL) {
return false;
@@ -3108,7 +3108,7 @@ rspamd_symcache_get_allowed_settings_ids (struct rspamd_symcache *cache,
struct rspamd_symcache_item *item;
guint cnt = 0;
- item = rspamd_symcache_find_filter (cache, symbol, true);
+ item = rspamd_symcache_find_filter (cache, symbol, false);
if (item == NULL) {
return NULL;
@@ -3142,7 +3142,7 @@ rspamd_symcache_get_forbidden_settings_ids (struct rspamd_symcache *cache,
struct rspamd_symcache_item *item;
guint cnt = 0;
- item = rspamd_symcache_find_filter (cache, symbol, true);
+ item = rspamd_symcache_find_filter (cache, symbol, false);
if (item == NULL) {
return NULL;