]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
DW:
authorwessels <>
Sun, 16 Jul 2000 11:29:43 +0000 (11:29 +0000)
committerwessels <>
Sun, 16 Jul 2000 11:29:43 +0000 (11:29 +0000)
 - That range_limit_offset patch could cause a NULL pointer read.

src/client_side.cc

index 0239aedf8f5bc3a267cf48b31346a5cab8a9da01..0e8d0df1554cb58afd6f49bc2709f9894e661b48 100644 (file)
@@ -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_