From: Christos Tsantilas Date: Tue, 11 Jun 2013 14:09:58 +0000 (-0600) Subject: Fix wrong check inside Format::Format::assemble X-Git-Tag: SQUID_3_3_6~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=83c31c8c44e71dc05a73622180fc9d5c6c767f39;p=thirdparty%2Fsquid.git Fix wrong check inside Format::Format::assemble We are checking for al->request but we are using al->adapted_request. This is may cause crashes if the al->adapted_request is NULL. --- diff --git a/src/format/Format.cc b/src/format/Format.cc index 3ac308b154..17173603c2 100644 --- a/src/format/Format.cc +++ b/src/format/Format.cc @@ -510,7 +510,7 @@ Format::Format::assemble(MemBuf &mb, const AccessLogEntry::Pointer &al, int logS case LFT_ADAPTED_REQUEST_HEADER: - if (al->request) + if (al->adapted_request) sb = al->adapted_request->header.getByName(fmt->data.header.header); out = sb.termedBuf();