From: wessels <> Date: Fri, 6 Dec 1996 12:44:41 +0000 (+0000) Subject: USE_POLL pfds[] out-of-range fix X-Git-Tag: SQUID_3_0_PRE1~5321 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f0599c782bd730e00cdf7e1dc545d5edf71ef76;p=thirdparty%2Fsquid.git USE_POLL pfds[] out-of-range fix --- diff --git a/src/comm.cc b/src/comm.cc index 66df63b8b2..fe813037b2 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1,6 +1,6 @@ /* - * $Id: comm.cc,v 1.116 1996/12/05 21:23:54 wessels Exp $ + * $Id: comm.cc,v 1.117 1996/12/06 05:44:41 wessels Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -645,8 +645,6 @@ comm_select_incoming(void) if (pfds[i].events == 0) pfds[i].fd = -1; } - pfds[N].fd = -1; /* just in case... */ - pfds[N].events = 0; if (poll(pfds, N, (int) 0) < 1) return; getCurrentTime();