From 88c6307dcffe2b7329a58b7beff15f5063752a3c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 11 Aug 2015 15:23:44 +0100 Subject: [PATCH] Fix args splitting. --- src/libutil/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libutil/http.c b/src/libutil/http.c index 82ffdc19fc..73954474c3 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; } -- 2.47.3