]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
make "key not found" fatal
authorwessels <>
Tue, 2 Jun 1998 03:13:28 +0000 (03:13 +0000)
committerwessels <>
Tue, 2 Jun 1998 03:13:28 +0000 (03:13 +0000)
src/ipcache.cc

index 5ae5f11751bf5ab48157689369ffccef620a7936..db15c6a1b29fb69eb760d3e6af6b2cdaf4bb9f81 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ipcache.cc,v 1.189 1998/05/30 19:43:13 rousskov Exp $
+ * $Id: ipcache.cc,v 1.190 1998/06/01 21:13:28 wessels Exp $
  *
  * DEBUG: section 14    IP Cache
  * AUTHOR: Harvest Derived
@@ -229,10 +229,8 @@ static void
 ipcache_release(ipcache_entry * i)
 {
     hash_link *table_entry = NULL;
-    if ((table_entry = hash_lookup(ip_table, i->name)) == NULL) {
-       debug(14, 0) ("ipcache_release: Could not find key '%s'\n", i->name);
-       return;
-    }
+    if ((table_entry = hash_lookup(ip_table, i->name)) == NULL)
+       fatalf("ipcache_release: key '%s' not found\n", i->name);
     assert(i == (ipcache_entry *) table_entry);
     if (i->locks) {
        i->expires = squid_curtime;