]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
-Add a function to release an ipcache entry if its negative cached
authorwessels <>
Wed, 10 Jul 1996 04:55:14 +0000 (04:55 +0000)
committerwessels <>
Wed, 10 Jul 1996 04:55:14 +0000 (04:55 +0000)
src/ipcache.cc

index 6b848bde4cc27d4e7c1c5bc0a942d6a6ddfcaa57..6f9a95c7616c9a5fedda9d844eaefed70543047a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ipcache.cc,v 1.29 1996/07/09 03:41:31 wessels Exp $
+ * $Id: ipcache.cc,v 1.30 1996/07/09 22:55:14 wessels Exp $
  *
  * DEBUG: section 14    IP Cache
  * AUTHOR: Harvest Derived
@@ -1326,3 +1326,14 @@ static int ipcacheHasPending(i)
            return 1;
     return 0;
 }
+
+void ipcacheReleaseInvalid(name)
+     char *name;
+{
+    ipcache_entry *i;
+    if ((i = ipcache_get(name)) == NULL)
+       return;
+    if (i->status != IP_NEGATIVE_CACHED)
+       return;
+    ipcache_release(i);
+}