]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
assert dns_error_message exists for COMM_ERR_DNS callbacks
authorwessels <>
Tue, 6 Jan 1998 09:47:14 +0000 (09:47 +0000)
committerwessels <>
Tue, 6 Jan 1998 09:47:14 +0000 (09:47 +0000)
src/comm.cc

index 6bb8b74d57e6b0fe97d95cba1f0602f761c049ac..f2f1e024069b547f3986405e7f377e276100f07b 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: comm.cc,v 1.220 1998/01/05 21:18:13 wessels Exp $
+ * $Id: comm.cc,v 1.221 1998/01/06 02:47:14 wessels Exp $
  *
  * DEBUG: section 5     Socket Functions
  * AUTHOR: Harvest Derived
@@ -328,6 +328,7 @@ commConnectDnsHandle(const ipcache_addrs * ia, void *data)
     cs->locks--;
     if (ia == NULL) {
        debug(5, 3) ("commConnectDnsHandle: Unknown host: %s\n", cs->host);
+       assert(dns_error_message != NULL);
        commConnectCallback(cs, COMM_ERR_DNS);
        return;
     }