From 7c4381a4938a4e1023c4cfc782c24d20b72a9e3c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 31 Mar 2016 14:54:35 +0100 Subject: [PATCH] [Fix] Do not parse broken TLD parts --- src/libserver/url.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5