aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-15 17:07:13 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-15 17:07:13 +0100
commit792ca08bdc8db204968b63c13095bb0e4ab910a8 (patch)
tree651b01b5b1f566efa2dfc234cfaa77caf8a2d9b2 /src/libserver
parent44e323e47431dc6e64e374f30565a2c292144f52 (diff)
downloadrspamd-792ca08bdc8db204968b63c13095bb0e4ab910a8.tar.gz
rspamd-792ca08bdc8db204968b63c13095bb0e4ab910a8.zip
Fix url length setup.
Diffstat (limited to 'src/libserver')
-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 174884e71..19e056c7a 100644
--- a/src/libserver/url.c
+++ b/src/libserver/url.c
@@ -999,7 +999,6 @@ rspamd_url_parse (struct rspamd_url *uri, gchar *uristring, gsize len,
p = rspamd_mempool_alloc (pool, end - uristring + 1);
rspamd_strlcpy (p, uristring, end - uristring + 1);
len = end - uristring;
- uri->urllen = len;
}
for (i = 0; i < UF_MAX; i ++) {
@@ -1042,6 +1041,7 @@ rspamd_url_parse (struct rspamd_url *uri, gchar *uristring, gsize len,
/* Now decode url symbols */
uri->string = p;
+ uri->urllen = len;
rspamd_unescape_uri (uri->string, uri->string, len);
rspamd_str_lc (uri->string, uri->protocollen);
rspamd_str_lc_utf8 (uri->host, uri->hostlen);