]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
assert valid args for ipcacheReleaseInvalid
authorwessels <>
Fri, 20 Mar 1998 02:13:12 +0000 (02:13 +0000)
committerwessels <>
Fri, 20 Mar 1998 02:13:12 +0000 (02:13 +0000)
src/ipcache.cc

index 87c963ba78635c4deab7dea669b442ed93ec8b05..d4d6bb2abc1c46bf32a76078b37f7f2bda299d61 100644 (file)
@@ -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)