]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix Surrogate-Control header parser of name=value tags.
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Tue, 2 Nov 2010 00:49:51 +0000 (01:49 +0100)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Tue, 2 Nov 2010 00:49:51 +0000 (01:49 +0100)
src/HttpHdrSc.cc

index 2e8a9ee09e76d62c7a52769881e24cadd313a3e0..3ee98faf55fce1cf7a474249015869afd35572c6 100644 (file)
@@ -128,8 +128,9 @@ httpHdrScParseInit(HttpHdrSc * sc, const String * str)
         /* decrease ilen to still match the token for  '=' statements */
 
         if ((p = strchr(item, '=')) && (p - item < ilen)) {
-            vlen = ilen - (++p - item);
+            vlen = ilen - (p + 1 - item);
             ilen = p - item;
+            p++;
         }
 
         /* decrease ilen to still match the token for ';' qualified non '=' statments */