aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-08-11 15:23:44 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-08-11 15:23:44 +0100
commit88c6307dcffe2b7329a58b7beff15f5063752a3c (patch)
tree1602da032556e445a76280c8a3a3acc29b496963 /src/libutil
parent5ed1a8aec4040116f1bc823b671ffdac0ecc3ae5 (diff)
downloadrspamd-88c6307dcffe2b7329a58b7beff15f5063752a3c.tar.gz
rspamd-88c6307dcffe2b7329a58b7beff15f5063752a3c.zip
Fix args splitting.
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/http.c b/src/libutil/http.c
index 82ffdc19f..73954474c 100644
--- a/src/libutil/http.c
+++ b/src/libutil/http.c
@@ -2411,7 +2411,7 @@ rspamd_http_message_parse_query (struct rspamd_http_message *msg)
break;
case parse_ampersand:
- if (*p != '&') {
+ if (*p != '&' && p != end) {
c = p;
state = parse_key;
}