--------------------- PatchSet 11368 Date: 2007/04/11 22:02:41 Author: hno Branch: HEAD Tag: (none) Log: Add back missing parsing of second content-length header (l2) somehow got lost when strengthening the HTTP parser from integer errors Members: src/HttpHeader.c:1.94->1.95 Index: squid/src/HttpHeader.c =================================================================== RCS file: /cvsroot/squid/squid/src/HttpHeader.c,v retrieving revision 1.94 retrieving revision 1.95 diff -u -r1.94 -r1.95 --- squid/src/HttpHeader.c 11 Mar 2007 22:41:16 -0000 1.94 +++ squid/src/HttpHeader.c 11 Apr 2007 22:02:41 -0000 1.95 @@ -1,6 +1,6 @@ /* - * $Id: HttpHeader.c,v 1.94 2007/03/11 22:41:16 hno Exp $ + * $Id: HttpHeader.c,v 1.95 2007/04/11 22:02:41 hno Exp $ * * DEBUG: section 55 HTTP Header * AUTHOR: Alex Rousskov @@ -502,7 +502,13 @@ if (!Config.onoff.relaxed_header_parser) { httpHeaderEntryDestroy(e); return httpHeaderReset(hdr); - } else if (l1 > l2) { + } + if (!httpHeaderParseSize(strBuf(e2->value), &l2)) { + debug(55, 1) ("WARNING: Unparseable content-length '%s'\n", strBuf(e->value)); + httpHeaderEntryDestroy(e); + return httpHeaderReset(hdr); + } + if (l1 > l2) { httpHeaderDelById(hdr, e2->id); } else { httpHeaderEntryDestroy(e);