diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-19 18:01:36 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-19 18:01:36 +0400 |
commit | f5bc6840a7db6034eeec338454105814fabbfb32 (patch) | |
tree | 642f268115839e63e16433432456f1c5cf48031b /src/plugins | |
parent | 6a721dd9d9c62015ee365a36a0f1a0b9be344b4c (diff) | |
download | rspamd-f5bc6840a7db6034eeec338454105814fabbfb32.tar.gz rspamd-f5bc6840a7db6034eeec338454105814fabbfb32.zip |
* Do not try to resolve names with several dots in a row
* Fix surbl request formatting for ip addresses
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/surbl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index 09c382b7f..2fbeb5e2b 100644 --- a/src/plugins/surbl.c +++ b/src/plugins/surbl.c @@ -347,9 +347,9 @@ format_surbl_request (memory_pool_t * pool, f_str_t * hostname, struct suffix_it (int)(hostname->len - (dots[2] - hostname->begin + 1)), dots[2] + 1, (int)(dots[2] - dots[1] - 1), - dots[1], + dots[1] + 1, (int)(dots[1] - dots[0] - 1), - dots[0], + dots[0] + 1, (int)(dots[0] - hostname->begin), hostname->begin); } |