aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-05 17:48:20 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-05 17:48:20 +0400
commit52e71f9ed43b0e0f7f030eb0f0b56a887978cf8a (patch)
tree9496a3ea6f3b95006554b003e01425e6b68b2765 /src/plugins
parentbae637bec8e9c23668cbacbb9f5a1bd829cae487 (diff)
downloadrspamd-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.c2
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 {