From: wessels <> Date: Sun, 16 Jul 2000 11:29:43 +0000 (+0000) Subject: DW: X-Git-Tag: SQUID_3_0_PRE1~1894 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=60b8e0e5ac04b026271fb0d1ad532c53ee5b9282;p=thirdparty%2Fsquid.git DW: - That range_limit_offset patch could cause a NULL pointer read. --- diff --git a/src/client_side.cc b/src/client_side.cc index 0239aedf8f..0e8d0df155 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.493 2000/07/16 04:24:21 wessels Exp $ + * $Id: client_side.cc,v 1.494 2000/07/16 05:29:43 wessels Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -2028,7 +2028,9 @@ clientProcessRequest2(clientHttpRequest * http) ipcacheReleaseInvalid(r->host); return LOG_TCP_CLIENT_REFRESH_MISS; } - if (r->range && httpHdrRangeWillBeComplex(r->range)) { + if (NULL == r->range) { + (void) 0; + } else if (httpHdrRangeWillBeComplex(r->range)) { /* * Some clients break if we return "200 OK" for a Range * request. We would have to return "200 OK" for a _complex_