]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
when logging the client request, al.reply might be NULL. If so, don't
authorwessels <>
Tue, 21 Feb 2006 01:58:17 +0000 (01:58 +0000)
committerwessels <>
Tue, 21 Feb 2006 01:58:17 +0000 (01:58 +0000)
link to it.

src/client_side.cc

index b80c2f682dde5c308f2c38869953c453ab44fa60..4574ef289c9646d210a4bd455e017b36c77ba9ba 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.713 2006/02/18 00:23:43 wessels Exp $
+ * $Id: client_side.cc,v 1.714 2006/02/20 18:58:17 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -522,7 +522,8 @@ ClientHttpRequest::logRequest()
 
         ACLChecklist *checklist = clientAclChecklistCreate(Config.accessList.log, this);
 
-        checklist->reply = HTTPMSGLOCK(al.reply);
+        if (al.reply)
+            checklist->reply = HTTPMSGLOCK(al.reply);
 
         if (!Config.accessList.log || checklist->fastCheck()) {
             al.request = HTTPMSGLOCK(request);