From: wessels <> Date: Tue, 5 Nov 1996 23:53:44 +0000 (+0000) Subject: emoved debug_trap() calls in squid_error_entry(). X-Git-Tag: SQUID_3_0_PRE1~5531 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d37cf75735e45809a609f507f4658556402eb0da;p=thirdparty%2Fsquid.git emoved debug_trap() calls in squid_error_entry(). --- diff --git a/src/errorpage.cc b/src/errorpage.cc index a226eaf580..6b4b054837 100644 --- a/src/errorpage.cc +++ b/src/errorpage.cc @@ -1,6 +1,6 @@ /* - * $Id: errorpage.cc,v 1.47 1996/11/04 18:12:28 wessels Exp $ + * $Id: errorpage.cc,v 1.48 1996/11/05 16:53:44 wessels Exp $ * * DEBUG: section 4 Error Generation * AUTHOR: Duane Wessels @@ -157,10 +157,10 @@ squid_error_entry(StoreEntry *entry, log_type type, const char *msg) { int error_index; - if (entry->store_status != STORE_PENDING) { - debug_trap("squid_error_entry() called on STORE_PENDING object"); + if (!entry) + return; + if (entry->store_status != STORE_PENDING) return; - } if (type < ERR_MIN || type > ERR_MAX) fatal_dump("squid_error_entry: type out of range."); error_index = (int) (type - ERR_MIN);