From: serassio <> Date: Thu, 24 Aug 2006 20:59:32 +0000 (+0000) Subject: Fix Squid crash when using %a in ERR_INVALID_REQ and ERR_INVALID_URL error messages. X-Git-Tag: SQUID_3_0_PRE5~176 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a1c6e4304c77aa5f8f4604dd5fd24b797548388e;p=thirdparty%2Fsquid.git Fix Squid crash when using %a in ERR_INVALID_REQ and ERR_INVALID_URL error messages. --- diff --git a/src/errorpage.cc b/src/errorpage.cc index 5ec8a0a722..c25ddf7ebe 100644 --- a/src/errorpage.cc +++ b/src/errorpage.cc @@ -1,6 +1,6 @@ /* - * $Id: errorpage.cc,v 1.215 2006/08/21 00:50:41 robertc Exp $ + * $Id: errorpage.cc,v 1.216 2006/08/24 14:59:32 serassio Exp $ * * DEBUG: section 4 Error Generation * AUTHOR: Duane Wessels @@ -619,7 +619,7 @@ errorConvert(char token, ErrorState * err) case 'a': - if (r->auth_user_request) + if (r && r->auth_user_request) p = r->auth_user_request->username(); if (!p)