aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-11-25 18:07:58 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-11-25 18:07:58 +0000
commit5cbdcc1742e39cbb430c29f69dbc4e35c7fa0377 (patch)
treecbd525e30ad27226dc97d8ab3cd3eeaca3672197
parentb6a5d60e0c8b2ab385ea0dfdd2b3e8fe3d2a5d60 (diff)
downloadrspamd-5cbdcc1742e39cbb430c29f69dbc4e35c7fa0377.tar.gz
rspamd-5cbdcc1742e39cbb430c29f69dbc4e35c7fa0377.zip
Fill surbl field in struct uri.
-rw-r--r--src/plugins/surbl.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index 8e4c41205..3c141256d 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -576,7 +576,8 @@ format_surbl_request (rspamd_mempool_t * pool,
gboolean append_suffix,
GError ** err,
gboolean forced,
- GTree *tree)
+ GTree *tree,
+ struct uri *url)
{
GHashTable *t;
gchar *result = NULL, *dots[MAX_LEVELS],
@@ -710,6 +711,9 @@ format_surbl_request (rspamd_mempool_t * pool,
}
}
+ url->surbl = result;
+ url->surbllen = r;
+
if (tree != NULL) {
if (g_tree_lookup (tree, result) != NULL) {
msg_debug ("url %s is already registered", result);
@@ -762,7 +766,7 @@ make_surbl_requests (struct uri *url, struct rspamd_task *task,
f.len = url->hostlen;
if ((surbl_req = format_surbl_request (task->task_pool, &f, suffix, TRUE,
- &err, forced, tree)) != NULL) {
+ &err, forced, tree, url)) != NULL) {
param =
rspamd_mempool_alloc (task->task_pool, sizeof (struct dns_param));
param->url = url;