From: Christos Tsantilas Date: Tue, 11 Jun 2013 09:25:07 +0000 (+0300) Subject: Fix wrong check inside Format::Format::assemble X-Git-Tag: SQUID_3_4_0_1~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=38d92afa2e75e2f7e6a1aa68ec80c8167837060b;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 d4a296d639..483d71b039 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();