]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Do not parse broken TLD parts
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 31 Mar 2016 13:54:35 +0000 (14:54 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 31 Mar 2016 13:54:35 +0000 (14:54 +0100)
src/libserver/url.c

index eeaf0eebe49cecaa36d9e14b12dbc443703ab74a..b27c5a1692e0b2bb0a049de6aaa313223846ae80 100644 (file)
@@ -1106,6 +1106,9 @@ rspamd_tld_trie_callback (int strnum, int textpos, void *context)
                                /* This is dot at the end of domain */
                                url->hostlen--;
                        }
+                       else {
+                               return 0;
+                       }
                }
                else {
                        return 0;