From: Vsevolod Stakhov Date: Thu, 25 Jun 2015 14:42:57 +0000 (+0100) Subject: More fixes to tld match. X-Git-Tag: 0.9.8~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d2c3b37a262f79439a28924468941ef0c60e0aca;p=thirdparty%2Frspamd.git More fixes to tld match. --- diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index 9e38dade74..e8e7ea7bb1 100644 --- a/src/plugins/surbl.c +++ b/src/plugins/surbl.c @@ -1092,8 +1092,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; } }