]> xenbits.xensource.com Git - xenclient/toolstack.git/commitdiff
Fix overlooked substring bug in http parser.
authorPrashanth Mundkur <prashanth.mundkur@citrix.com>
Wed, 10 Jun 2009 00:44:00 +0000 (17:44 -0700)
committerPrashanth Mundkur <prashanth.mundkur@citrix.com>
Tue, 23 Jun 2009 16:33:06 +0000 (09:33 -0700)
libs/http/http.ml

index 3f701226dc36291af8f662dfe462bc644284a811..e50e7a696e22a1ba8ae122d2f0c1148a2dfc9fcd 100644 (file)
@@ -976,7 +976,7 @@ module Payload = struct
                | _    -> None
 
        let parse_substring state str ofs len =
-               let i = ref 0 in
+               let i = ref ofs in
                let iend = ofs + len in
                while get_parse_result state = None && !i < iend do
                        parse_char state str.[!i];