]> source.dussan.org Git - rspamd.git/commitdiff
More fixes to tld match.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 25 Jun 2015 14:42:57 +0000 (15:42 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 25 Jun 2015 14:42:57 +0000 (15:42 +0100)
src/plugins/surbl.c

index 9e38dade7473227e69de8b21af07580f2454eaed..e8e7ea7bb10a7a53b67721d3d884a7cfcdc113f0 100644 (file)
@@ -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;
                                        }
                                }