From: Francesco Chemolli Date: Fri, 14 Oct 2011 14:42:32 +0000 (+0200) Subject: Added null pointer guard in HttpStateData::cacheableReply() X-Git-Tag: BumpSslServerFirst.take01~99 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f308e116a9159186a71727cd5cd8db5c5d547c6b;p=thirdparty%2Fsquid.git Added null pointer guard in HttpStateData::cacheableReply() --- diff --git a/src/http.cc b/src/http.cc index 7cf6938f2d..3f13d9955a 100644 --- a/src/http.cc +++ b/src/http.cc @@ -382,7 +382,7 @@ HttpStateData::cacheableReply() * RFC 2068, sec 14.9.4 */ - if (!request->cache_control->Public()) { + if (!request->cache_control || !request->cache_control->Public()) { if (!REFRESH_OVERRIDE(ignore_auth)) return 0; }