diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-25 15:42:57 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-25 15:56:02 +0100 |
commit | f10ab5a0d1278806b03470b540c2a769ba3ac549 (patch) | |
tree | f382b006f9a19e31884f0283abeb0e7f1e1ee88b /src | |
parent | 7eb41d4c550b9953b333e2864b8857eeddc82c44 (diff) | |
download | rspamd-f10ab5a0d1278806b03470b540c2a769ba3ac549.tar.gz rspamd-f10ab5a0d1278806b03470b540c2a769ba3ac549.zip |
More fixes to tld match.
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 222618beb..f62f00da5 100644 --- a/src/plugins/surbl.c +++ b/src/plugins/surbl.c @@ -1115,8 +1115,8 @@ surbl_tree_url_callback (gpointer key, gpointer value, void *data) pat->ptr); if (re == NULL) { /* Perform exact match */ - if (pat->len == url->hostlen && memcmp (pat->ptr, - url->host, pat->len) == 0) { + if (pat->len == url->tldlen && memcmp (pat->ptr, + url->tld, pat->len) == 0) { found = TRUE; } } |