]> git.ipfire.org Git - thirdparty/squid.git/commit - src/HttpHeaderTools.cc
Bug 2286: assertion failed: HttpHdrContRange.cc:100: "spec->length >= 0"
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 5 Apr 2008 10:55:30 +0000 (22:55 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 5 Apr 2008 10:55:30 +0000 (22:55 +1200)
commit66e255bc88942e5543989a5cd3c65553e35629e2
tree1a30db0fe1172c61fe595988a5591e8aa923bd31
parent220c4a78cd558e401650a12851916c16e6d41cfa
Bug 2286: assertion failed: HttpHdrContRange.cc:100: "spec->length >= 0"
Author: Christos Tsantilos <chtsanti@users.sourceforge.net>

Moves the assertion check for spec->length in function
httpHdrRangeRespSpecParseInit  exactly after the spec->length copmuted.

Also Fix of a possible  misuse of errno in httpHeaderParseOffset function
The errno before used with strtol function must set to "0".
src/HttpHdrContRange.cc
src/HttpHeaderTools.cc