diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-05 17:48:20 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-05 17:48:20 +0400 |
commit | 52e71f9ed43b0e0f7f030eb0f0b56a887978cf8a (patch) | |
tree | 9496a3ea6f3b95006554b003e01425e6b68b2765 /src/plugins | |
parent | bae637bec8e9c23668cbacbb9f5a1bd829cae487 (diff) | |
download | rspamd-52e71f9ed43b0e0f7f030eb0f0b56a887978cf8a.tar.gz rspamd-52e71f9ed43b0e0f7f030eb0f0b56a887978cf8a.zip |
* Fix detection of numeric urls (reported by citrin)
* Write real time of message's scan to log (not only virtual)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/surbl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index 8c9d2ccb0..f50bd8976 100644 --- a/src/plugins/surbl.c +++ b/src/plugins/surbl.c @@ -371,7 +371,7 @@ format_surbl_request (memory_pool_t * pool, f_str_t * hostname, struct suffix_it /* Hack for bugged windows resolver */ ip_num &= 0xFFFFFFFF; /* Get octets */ - r = rspamd_snprintf (result, len, "%u.%u.%u.%u", + r = rspamd_snprintf (result, len, "%ud.%ud.%ud.%ud", (uint32_t) ip_num & 0x000000FF, (uint32_t) (ip_num & 0x0000FF00) >> 8, (uint32_t) (ip_num & 0x00FF0000) >> 16, (uint32_t) (ip_num & 0xFF000000) >> 24); } else { |