From: Henrik Nordstrom Date: Sat, 6 Mar 2010 22:48:00 +0000 (+0100) Subject: Fix new digest parser shutdown code when digest auth not configured X-Git-Tag: SQUID_3_2_0_1~377 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=987e0099e09c265949d22f4caa7ac904de55a6ed;p=thirdparty%2Fsquid.git Fix new digest parser shutdown code when digest auth not configured --- diff --git a/src/auth/digest/auth_digest.cc b/src/auth/digest/auth_digest.cc index a33d90c23e..d4dc4064d2 100644 --- a/src/auth/digest/auth_digest.cc +++ b/src/auth/digest/auth_digest.cc @@ -532,8 +532,10 @@ digestScheme::done() if (digestauthenticators) helperShutdown(digestauthenticators); - httpHeaderDestroyFieldsInfo(DigestFieldsInfo, DIGEST_ENUM_END); - DigestFieldsInfo = NULL; + if (DigestFieldsInfo) { + httpHeaderDestroyFieldsInfo(DigestFieldsInfo, DIGEST_ENUM_END); + DigestFieldsInfo = NULL; + } authdigest_initialised = 0;