]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
bugfix: Initialize pendingfds to zero
authorhno <>
Sat, 27 Apr 2002 14:47:43 +0000 (14:47 +0000)
committerhno <>
Sat, 27 Apr 2002 14:47:43 +0000 (14:47 +0000)
src/comm_select.cc

index e369a6a9245dfb44aef8b647ddb41faff8dea54b..07488d06cc5582173235297c8f8b2e50b8154a21 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: comm_select.cc,v 1.55 2002/04/13 23:07:49 hno Exp $
+ * $Id: comm_select.cc,v 1.56 2002/04/27 08:47:43 hno Exp $
  *
  * DEBUG: section 5     Socket Functions
  *
@@ -368,6 +368,7 @@ comm_select(int msec)
            howmany(maxfd, FD_MASK_BITS) * FD_MASK_BYTES);
        /* remove stalled FDs, and deal with pending descriptors */
        pending = 0;
+       FD_ZERO(&pendingfds);
        maxindex = howmany(maxfd, FD_MASK_BITS);
        fdsp = (fd_mask *) & readfds;
        for (j = 0; j < maxindex; j++) {