]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Fix args splitting.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 Aug 2015 14:23:44 +0000 (15:23 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 Aug 2015 14:23:44 +0000 (15:23 +0100)
src/libutil/http.c

index 82ffdc19fc6530f29a273bf928d955f484e1f1d4..73954474c32481e5a41ca5bb9e2405f43fecd52e 100644 (file)
@@ -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;
                                        }