From: Amos Jeffries Date: Sat, 18 Oct 2008 06:25:40 +0000 (+1300) Subject: Fix: request may be NULL on some errors. X-Git-Tag: SQUID_3_2_0_1~1395 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6859bd987c1acae79579aa8722cf20e5a243895a;p=thirdparty%2Fsquid.git Fix: request may be NULL on some errors. --- diff --git a/src/errorpage.cc b/src/errorpage.cc index 50f40191d9..c075a75dec 100644 --- a/src/errorpage.cc +++ b/src/errorpage.cc @@ -908,7 +908,7 @@ ErrorState::BuildContent() /** error_directory option in squid.conf overrides translations. * Otherwise locate the Accept-Language header */ - if(!Config.errorDirectory && request->header.getList(HDR_ACCEPT_LANGUAGE, &hdr) ) { + if(!Config.errorDirectory && request && request->header.getList(HDR_ACCEPT_LANGUAGE, &hdr) ) { const char *buf = hdr.buf(); // raw header string for parsing int pos = 0; // current parsing position in header string