From 60b8e0e5ac04b026271fb0d1ad532c53ee5b9282 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Sun, 16 Jul 2000 11:29:43 +0000 Subject: [PATCH] DW: - That range_limit_offset patch could cause a NULL pointer read. --- src/client_side.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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_ -- 2.47.3