]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix Squid crash when using %a in ERR_INVALID_REQ and ERR_INVALID_URL error messages.
authorserassio <>
Thu, 24 Aug 2006 20:59:32 +0000 (20:59 +0000)
committerserassio <>
Thu, 24 Aug 2006 20:59:32 +0000 (20:59 +0000)
src/errorpage.cc

index 5ec8a0a7221d137c87ca8b662c0a54930dcb55bd..c25ddf7ebe79dab5013db8e7751206a6069bb1b4 100644 (file)
@@ -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)