]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
assertion for ipcache ABR wierdness
authorwessels <>
Tue, 21 Oct 1997 21:59:11 +0000 (21:59 +0000)
committerwessels <>
Tue, 21 Oct 1997 21:59:11 +0000 (21:59 +0000)
src/comm.cc

index e893400cc771039b6198fc1798a21c8707e55707..16091c50621f52f99a3f17b25f595aec9619a5aa 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: comm.cc,v 1.187 1997/10/20 19:24:59 wessels Exp $
+ * $Id: comm.cc,v 1.188 1997/10/21 15:59:11 wessels Exp $
  *
  * DEBUG: section 5     Socket Functions
  * AUTHOR: Harvest Derived
@@ -330,6 +330,7 @@ commConnectDnsHandle(const ipcache_addrs * ia, void *data)
        commConnectCallback(cs, COMM_ERR_DNS);
        return;
     }
+    assert(ia->cur < ia->count);
     cs->in_addr = ia->in_addrs[ia->cur];
     commConnectHandle(cs->fd, cs);
 }