From: rousskov <> Date: Fri, 31 Jul 1998 03:52:01 +0000 (+0000) Subject: - minor fix, rep can be NULL in clientBuildRangeHeader. X-Git-Tag: SQUID_3_0_PRE1~2958 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5e2dba1635d95728c5244f8045cf0b391944f1fb;p=thirdparty%2Fsquid.git - minor fix, rep can be NULL in clientBuildRangeHeader. --- diff --git a/src/client_side.cc b/src/client_side.cc index c8e12eae67..fa90e3413f 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.369 1998/07/30 21:49:11 rousskov Exp $ + * $Id: client_side.cc,v 1.370 1998/07/30 21:52:01 rousskov Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -874,7 +874,7 @@ clientIfRangeMatch(clientHttpRequest * http, HttpReply * rep) static void clientBuildRangeHeader(clientHttpRequest * http, HttpReply * rep) { - HttpHeader *hdr = &rep->header; + HttpHeader *hdr = rep ? &rep->header : 0; const char *range_err = NULL; assert(http->request->range); /* check if we still want to do ranges */