diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-25 15:42:16 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-25 15:56:02 +0100 |
commit | 7eb41d4c550b9953b333e2864b8857eeddc82c44 (patch) | |
tree | b148959adb65327b587b20900604a274cf6d3455 /src | |
parent | 5fcec0fcdb129b268a56464e2c4449d98e1281e3 (diff) | |
download | rspamd-7eb41d4c550b9953b333e2864b8857eeddc82c44.tar.gz rspamd-7eb41d4c550b9953b333e2864b8857eeddc82c44.zip |
Use tld for redirector's matching.
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/surbl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index cddfbb361..222618beb 100644 --- a/src/plugins/surbl.c +++ b/src/plugins/surbl.c @@ -1104,8 +1104,8 @@ surbl_tree_url_callback (gpointer key, gpointer value, void *data) if (surbl_module_ctx->use_redirector) { /* Search in trie */ if (surbl_module_ctx->redirector_trie) { - idx = acism_lookup (surbl_module_ctx->redirector_trie, url->host, - url->hostlen, surbl_redirector_trie_cb, url, &state, true); + idx = acism_lookup (surbl_module_ctx->redirector_trie, url->tld, + url->tldlen, surbl_redirector_trie_cb, url, &state, true); if (idx > 0) { pat = &g_array_index (surbl_module_ctx->redirector_ptrs, ac_trie_pat_t, idx - 1); |