From: wessels <> Date: Fri, 20 Mar 1998 02:14:49 +0000 (+0000) Subject: change ipcacheReleaseInvalid() assertions to debugs X-Git-Tag: SQUID_3_0_PRE1~3794 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55906d8eca9f0de322ce504e16ae9b3c4f478d09;p=thirdparty%2Fsquid.git change ipcacheReleaseInvalid() assertions to debugs --- diff --git a/src/ipcache.cc b/src/ipcache.cc index d4d6bb2abc..0a5a80fd5d 100644 --- a/src/ipcache.cc +++ b/src/ipcache.cc @@ -1,6 +1,6 @@ /* - * $Id: ipcache.cc,v 1.168 1998/03/19 19:13:12 wessels Exp $ + * $Id: ipcache.cc,v 1.169 1998/03/19 19:14:49 wessels Exp $ * * DEBUG: section 14 IP Cache * AUTHOR: Harvest Derived @@ -828,8 +828,14 @@ void ipcacheReleaseInvalid(const char *name) { ipcache_entry *i; - assert(NULL != name); - assert(0 < strlen(name)); + if (NULL == name) { + debug(14, 1) ("ipcacheReleaseInvalid: NULL name\n"); + return; + } + if (0 == strlen(name)) { + debug(14, 1) ("ipcacheReleaseInvalid: Empty name\n"); + return; + } if ((i = ipcache_get(name)) == NULL) return; if (i->status != IP_NEGATIVE_CACHED)