From: wessels <> Date: Tue, 21 Oct 1997 21:59:11 +0000 (+0000) Subject: assertion for ipcache ABR wierdness X-Git-Tag: SQUID_3_0_PRE1~4749 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f076b37ba35e654e3d5cfbb5d47e580481391dcc;p=thirdparty%2Fsquid.git assertion for ipcache ABR wierdness --- diff --git a/src/comm.cc b/src/comm.cc index e893400cc7..16091c5062 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -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); }