diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-16 12:10:58 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-16 12:10:58 +0000 |
commit | c4958798d0058d349fa33a1ed4dd3bede1dab730 (patch) | |
tree | dae243f7b9a6590e9fb4ed58366a5b36bf6b327e | |
parent | 0e270dbe709e743ec840999c05e35f4d63be69b4 (diff) | |
download | rspamd-c4958798d0058d349fa33a1ed4dd3bede1dab730.tar.gz rspamd-c4958798d0058d349fa33a1ed4dd3bede1dab730.zip |
[Minor] Fix crash in testing of url tags in SURBL
-rw-r--r-- | src/plugins/surbl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index 16516941a..7ee9269b2 100644 --- a/src/plugins/surbl.c +++ b/src/plugins/surbl.c @@ -1445,7 +1445,7 @@ surbl_test_tags (struct rspamd_task *task, struct redirector_param *param, if (!g_hash_table_lookup (task->urls, redirected_url)) { g_hash_table_insert (task->urls, redirected_url, redirected_url); - redirected_url->phished_url = param->url; + redirected_url->phished_url = url; redirected_url->flags |= RSPAMD_URL_FLAG_REDIRECTED; } } @@ -1460,8 +1460,8 @@ surbl_test_tags (struct rspamd_task *task, struct redirector_param *param, tld.len = redirected_url->tldlen; } else { - tld.begin = param->url->tld; - tld.len = param->url->tldlen; + tld.begin = url->tld; + tld.len = url->tldlen; } ftld = rspamd_mempool_ftokdup (task->task_pool, &tld); |