]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
cherry pick bugfix: cannot close all file descriptors from store refactoring work
authorrobertc <>
Mon, 27 Dec 2004 17:25:32 +0000 (17:25 +0000)
committerrobertc <>
Mon, 27 Dec 2004 17:25:32 +0000 (17:25 +0000)
src/fd.cc

index 4fe2d3fb0cef8d62d206307ae53d69221c574b26..1c1243bada7f3aac85ed4b811783b01b2e7e591c 100644 (file)
--- a/src/fd.cc
+++ b/src/fd.cc
@@ -1,6 +1,6 @@
 
 /*
- * $Id: fd.cc,v 1.50 2004/04/03 14:25:59 hno Exp $
+ * $Id: fd.cc,v 1.51 2004/12/27 10:25:32 robertc Exp $
  *
  * DEBUG: section 51    Filedescriptor Functions
  * AUTHOR: Duane Wessels
@@ -82,7 +82,7 @@ fdUpdateBiggest(int fd, int opening)
      */
     assert(!opening);
 
-    while (!fd_table[Biggest_FD].flags.open)
+    while (Biggest_FD >= 0 && !fd_table[Biggest_FD].flags.open)
         Biggest_FD--;
 }