aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/url.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-07 13:08:17 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-07 13:08:17 +0000
commitdbb7d466b83fa063d2b98aaf533bce74b19535e5 (patch)
tree1fd248b3a04f3b1b61917f3f7763f7dd9b2ed9ee /src/libserver/url.c
parent64e533b717c1a426c69a20f2a938271013e5a39e (diff)
downloadrspamd-dbb7d466b83fa063d2b98aaf533bce74b19535e5.tar.gz
rspamd-dbb7d466b83fa063d2b98aaf533bce74b19535e5.zip
Fix error on adjusting url lengths after decoding
Diffstat (limited to 'src/libserver/url.c')
-rw-r--r--src/libserver/url.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c
index 29082d338..165828cd4 100644
--- a/src/libserver/url.c
+++ b/src/libserver/url.c
@@ -1296,34 +1296,28 @@ rspamd_url_shift (struct rspamd_url *uri, gsize nlen,
case UF_SCHEMA:
if (uri->userlen > 0) {
uri->user -= shift;
- uri->userlen -= shift;
}
if (uri->hostlen > 0) {
uri->host -= shift;
- uri->hostlen -= shift;
}
/* Go forward */
case UF_HOST:
if (uri->datalen > 0) {
uri->data -= shift;
- uri->datalen -= shift;
}
/* Go forward */
case UF_PATH:
if (uri->querylen > 0) {
uri->query -= shift;
- uri->querylen -= shift;
}
/* Go forward */
case UF_QUERY:
if (uri->fragmentlen > 0) {
uri->fragment -= shift;
- uri->fragmentlen -= shift;
}
/* Go forward */
case UF_FRAGMENT:
default:
- uri->urllen -= shift;
break;
}
}