From: Vsevolod Stakhov Date: Thu, 31 Mar 2016 13:54:35 +0000 (+0100) Subject: [Fix] Do not parse broken TLD parts X-Git-Tag: 1.2.2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7c4381a4938a4e1023c4cfc782c24d20b72a9e3c;p=rspamd.git [Fix] Do not parse broken TLD parts --- diff --git a/src/libserver/url.c b/src/libserver/url.c index eeaf0eebe..b27c5a169 100644 --- a/src/libserver/url.c +++ b/src/libserver/url.c @@ -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;