summaryrefslogtreecommitdiffstats
path: root/src/plugins/surbl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-20 12:39:29 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-20 19:43:32 +0100
commit62828baf0ec2364a561aba3bf5894c4dcca7cc41 (patch)
tree2dbce172d5491df3220251ae9934b356dc22bf7b /src/plugins/surbl.c
parent97a9de385402020d3add12517c7bccae93af593b (diff)
downloadrspamd-62828baf0ec2364a561aba3bf5894c4dcca7cc41.tar.gz
rspamd-62828baf0ec2364a561aba3bf5894c4dcca7cc41.zip
[Project] Pass cache item to the callback functions
Diffstat (limited to 'src/plugins/surbl.c')
-rw-r--r--src/plugins/surbl.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index c27e5c858..fa4b92162 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -136,8 +136,12 @@ static const guint64 rspamd_surbl_cb_magic = 0xe09b8536f80de0d1ULL;
static const gchar *rspamd_surbl_default_monitored = "facebook.com";
static const guint default_max_redirected_urls = 10;
-static void surbl_test_url (struct rspamd_task *task, void *user_data);
-static void surbl_test_redirector (struct rspamd_task *task, void *user_data);
+static void surbl_test_url (struct rspamd_task *task,
+ struct rspamd_symcache_item *item,
+ void *user_data);
+static void surbl_test_redirector (struct rspamd_task *task,
+ struct rspamd_symcache_item *item,
+ void *user_data);
static void surbl_dns_callback (struct rdns_reply *reply, gpointer arg);
static void surbl_dns_ip_callback (struct rdns_reply *reply, gpointer arg);
static void process_dns_results (struct rspamd_task *task,
@@ -1870,7 +1874,9 @@ surbl_tree_url_callback (gpointer key, gpointer value, void *data)
}
static void
-surbl_test_url (struct rspamd_task *task, void *user_data)
+surbl_test_url (struct rspamd_task *task,
+ struct rspamd_symcache_item *item,
+ void *user_data)
{
struct redirector_param *param;
struct suffix_item *suffix = user_data;
@@ -1943,7 +1949,9 @@ surbl_test_url (struct rspamd_task *task, void *user_data)
}
static void
-surbl_test_redirector (struct rspamd_task *task, void *user_data)
+surbl_test_redirector (struct rspamd_task *task,
+ struct rspamd_symcache_item *item,
+ void *user_data)
{
struct redirector_param *param;
guint i, j;