From: wessels <> Date: Fri, 20 Mar 1998 02:13:12 +0000 (+0000) Subject: assert valid args for ipcacheReleaseInvalid X-Git-Tag: SQUID_3_0_PRE1~3795 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e92404526d6cc35ff3bf16149e2505f4c5d57d1b;p=thirdparty%2Fsquid.git assert valid args for ipcacheReleaseInvalid --- diff --git a/src/ipcache.cc b/src/ipcache.cc index 87c963ba78..d4d6bb2abc 100644 --- a/src/ipcache.cc +++ b/src/ipcache.cc @@ -1,6 +1,6 @@ /* - * $Id: ipcache.cc,v 1.167 1998/03/06 22:19:37 wessels Exp $ + * $Id: ipcache.cc,v 1.168 1998/03/19 19:13:12 wessels Exp $ * * DEBUG: section 14 IP Cache * AUTHOR: Harvest Derived @@ -828,6 +828,8 @@ void ipcacheReleaseInvalid(const char *name) { ipcache_entry *i; + assert(NULL != name); + assert(0 < strlen(name)); if ((i = ipcache_get(name)) == NULL) return; if (i->status != IP_NEGATIVE_CACHED)