]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
USE_POLL pfds[] out-of-range fix
authorwessels <>
Fri, 6 Dec 1996 12:44:41 +0000 (12:44 +0000)
committerwessels <>
Fri, 6 Dec 1996 12:44:41 +0000 (12:44 +0000)
src/comm.cc

index 66df63b8b208ff6571979b98c95c4e43d6bec24b..fe813037b22f21cdb392775d4b010743ab5435de 100644 (file)
@@ -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();