From 453c0124f6191a85f0767c0a1a52b25c2041d4ef Mon Sep 17 00:00:00 2001 From: wessels <> Date: Tue, 2 Jun 1998 03:13:28 +0000 Subject: [PATCH] make "key not found" fatal --- src/ipcache.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/ipcache.cc b/src/ipcache.cc index 5ae5f11751..db15c6a1b2 100644 --- a/src/ipcache.cc +++ b/src/ipcache.cc @@ -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; -- 2.47.3