The realted HttpReply object maybe is NULL, for example for icap reqmod
requests. We should always check before using it with HTTPMSGLOCK macro
/* BUG 2526: what to do when r->acl is empty?? */
// XXX: we do not have access to conn->rfc931 here.
acl_checklist = new ACLFilledChecklist(r->acl, filter.request, dash_str);
- acl_checklist->reply = filter.reply;
- HTTPMSGLOCK(acl_checklist->reply);
+ if ((acl_checklist->reply = filter.reply))
+ HTTPMSGLOCK(acl_checklist->reply);
acl_checklist->nonBlockingCheck(AccessCheckCallbackWrapper, this);
return;
}