diff options
Diffstat (limited to 'src/plugins/surbl.c')
-rw-r--r-- | src/plugins/surbl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index bee37e209..810b2fbe5 100644 --- a/src/plugins/surbl.c +++ b/src/plugins/surbl.c @@ -325,11 +325,11 @@ format_surbl_request (memory_pool_t * pool, f_str_t * hostname, struct suffix_it r = snprintf (result, len, "%*s.%*s.%*s.%*s", (int)(hostname->len - (dots[2] - hostname->begin + 1)), dots[2] + 1, - (int)(dots[2] - (dots[1] - hostname->begin + 1)), + (int)(dots[2] - dots[1] - 1), dots[1], - (int)(dots[1] - (dots[0] - hostname->begin + 1)), + (int)(dots[1] - dots[0] - 1), dots[0], - (int)(dots[0] - (hostname->begin + 1)), + (int)(dots[0] - hostname->begin), hostname->begin); } else if (is_numeric && dots_num == 0) { |