From d2c3b37a262f79439a28924468941ef0c60e0aca Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 25 Jun 2015 15:42:57 +0100 Subject: [PATCH] More fixes to tld match. --- src/plugins/surbl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index 9e38dade7..e8e7ea7bb 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; } } -- 2.39.5