]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
use fatal_dump instead of fatal
authorwessels <>
Fri, 5 Jun 1998 01:14:19 +0000 (01:14 +0000)
committerwessels <>
Fri, 5 Jun 1998 01:14:19 +0000 (01:14 +0000)
src/ipcache.cc

index db15c6a1b29fb69eb760d3e6af6b2cdaf4bb9f81..812fa5bbe45c6c48510cf59371419ddb133c26bc 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ipcache.cc,v 1.190 1998/06/01 21:13:28 wessels Exp $
+ * $Id: ipcache.cc,v 1.191 1998/06/04 19:14:19 wessels Exp $
  *
  * DEBUG: section 14    IP Cache
  * AUTHOR: Harvest Derived
@@ -229,8 +229,10 @@ static void
 ipcache_release(ipcache_entry * i)
 {
     hash_link *table_entry = NULL;
-    if ((table_entry = hash_lookup(ip_table, i->name)) == NULL)
-       fatalf("ipcache_release: key '%s' not found\n", i->name);
+    if ((table_entry = hash_lookup(ip_table, i->name)) == NULL) {
+       snprintf(tmp_error_buf, ERROR_BUF_SZ, "ipcache_release: key '%s' not found\n", i->name);
+       fatal_dump(tmp_error_buf);
+    }
     assert(i == (ipcache_entry *) table_entry);
     if (i->locks) {
        i->expires = squid_curtime;