aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-19 16:29:48 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-19 16:29:48 +0000
commit640eeeed3dd244e2fcbea31063079e59d60a1c9c (patch)
tree41031077ebd48a2d89c588224a86c0a2f084290e
parent2287a9092a9300cc56a05a9e83771e0bf05dc064 (diff)
downloadrspamd-640eeeed3dd244e2fcbea31063079e59d60a1c9c.tar.gz
rspamd-640eeeed3dd244e2fcbea31063079e59d60a1c9c.zip
Fix parsing of IP URLs
-rw-r--r--src/libserver/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c
index f0a65df8c..b1e1793c2 100644
--- a/src/libserver/url.c
+++ b/src/libserver/url.c
@@ -1167,7 +1167,7 @@ rspamd_url_is_ip (struct rspamd_url *uri, rspamd_mempool_t *pool)
p++;
}
- if (check_num && dots <= 3) {
+ if (check_num && dots <= 4) {
memcpy (&in4, &n, sizeof (in4));
uri->host = rspamd_mempool_alloc (pool, INET_ADDRSTRLEN + 1);
memset (uri->host, 0, INET_ADDRSTRLEN + 1);