diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-24 16:37:20 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-24 16:37:20 +0100 |
commit | 9895522edd7178259bcee4877ae9662c5f8f5d54 (patch) | |
tree | 49d927447ee4e56356664bd9d46f7320a8e75ee1 /src/plugins/surbl.c | |
parent | 796e1c90d649f2d744d6f95700bb31e0e524c984 (diff) | |
download | rspamd-9895522edd7178259bcee4877ae9662c5f8f5d54.tar.gz rspamd-9895522edd7178259bcee4877ae9662c5f8f5d54.zip |
[Fix] Add missing groups to C callback symbols
Diffstat (limited to 'src/plugins/surbl.c')
-rw-r--r-- | src/plugins/surbl.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index 3c467615c..34046c819 100644 --- a/src/plugins/surbl.c +++ b/src/plugins/surbl.c @@ -83,7 +83,6 @@ struct surbl_ctx { gdouble read_timeout; gboolean use_tags; GList *suffixes; - gchar *metric; const gchar *redirector_symbol; GHashTable **exceptions; struct rspamd_hash_map_helper *whitelist; @@ -860,6 +859,14 @@ surbl_module_parse_rule (const ucl_object_t* value, struct rspamd_config* cfg) cb_id = rspamd_symcache_add_symbol (cfg->cache, sym->str, 0, surbl_test_url, new_suffix, SYMBOL_TYPE_CALLBACK, -1); + rspamd_config_add_symbol (cfg, + sym->str, + 0.0, + "SURBL rule check callback", + "surbl", + RSPAMD_SYMBOL_FLAG_IGNORE, + 1, + 1); rspamd_symcache_add_dependency (cfg->cache, cb_id, SURBL_REDIRECTOR_CALLBACK); /* Failure symbol */ @@ -1051,6 +1058,14 @@ surbl_module_config (struct rspamd_config *cfg) (void) rspamd_symcache_add_symbol (cfg->cache, SURBL_REDIRECTOR_CALLBACK, 0, surbl_test_redirector, NULL, SYMBOL_TYPE_CALLBACK, -1); + rspamd_config_add_symbol (cfg, + SURBL_REDIRECTOR_CALLBACK, + 0.0, + "SURBL redirector check callback", + "surbl", + RSPAMD_SYMBOL_FLAG_IGNORE, + 1, + 1); if ((value = rspamd_config_get_module_opt (cfg, "surbl", "redirector")) != NULL) { |