From: wessels <> Date: Tue, 31 Mar 1998 11:08:32 +0000 (+0000) Subject: use assert instead of fatal_dump X-Git-Tag: SQUID_3_0_PRE1~3688 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=605bd34539fcaefbf6f08fb51442c50c14c2a22c;p=thirdparty%2Fsquid.git use assert instead of fatal_dump --- diff --git a/src/ipcache.cc b/src/ipcache.cc index 732bcf8321..1e042c479f 100644 --- a/src/ipcache.cc +++ b/src/ipcache.cc @@ -1,6 +1,6 @@ /* - * $Id: ipcache.cc,v 1.173 1998/03/29 08:51:00 wessels Exp $ + * $Id: ipcache.cc,v 1.174 1998/03/31 04:08:32 wessels Exp $ * * DEBUG: section 14 IP Cache * AUTHOR: Harvest Derived @@ -563,10 +563,7 @@ ipcache_nbgethostbyname(const char *name, IPH * handler, void *handlerData) ipcache_entry *i = NULL; dnsserver_t *dnsData = NULL; const ipcache_addrs *addrs = NULL; - - if (!handler) - fatal_dump("ipcache_nbgethostbyname: NULL handler"); - + assert(handler != NULL); debug(14, 4) ("ipcache_nbgethostbyname: Name '%s'.\n", name); IpcacheStats.requests++;