From: adrian <> Date: Mon, 2 Oct 2006 12:03:23 +0000 (+0000) Subject: Only enforce HTTP version if we parsed a full request line. X-Git-Tag: SQUID_3_0_PRE5~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa9aaa76cf52647eccf4ed8afff4e803d011d4d3;p=thirdparty%2Fsquid.git Only enforce HTTP version if we parsed a full request line. --- diff --git a/src/HttpMsg.cc b/src/HttpMsg.cc index a3adbe0b8a..58e96df976 100644 --- a/src/HttpMsg.cc +++ b/src/HttpMsg.cc @@ -1,6 +1,6 @@ /* - * $Id: HttpMsg.cc,v 1.37 2006/10/02 01:34:18 adrian Exp $ + * $Id: HttpMsg.cc,v 1.38 2006/10/02 06:03:23 adrian Exp $ * * DEBUG: section 74 HTTP Message * AUTHOR: Alex Rousskov @@ -605,12 +605,12 @@ HttpParserParseReqLine(HttpParser *hmsg) * Rightio - we have all the schtuff. Return true; we've got enough. */ retcode = 1; + assert(maj != -1); + assert(min != -1); finish: hmsg->v_maj = maj; hmsg->v_min = min; - assert(maj != -1); - assert(min != -1); PROF_stop(HttpParserParseReqLine); debug(74, 5) ("Parser: retval %d: from %d->%d: method %d->%d; url %d->%d; version %d->%d (%d/%d)\n", retcode, hmsg->req_start, hmsg->req_end,