--- glibc-2.4/nscd/connections.c 2006-01-05 09:11:08.000000000 +0100 +++ glibc-2.4.new/nscd/connections.c 2006-03-31 15:22:02.000000000 +0200 @@ -1569,6 +1569,8 @@ ++firstfree; while (firstfree < nused && conns[firstfree].fd != -1); } + else if (fd >= 0) + close (fd); --n; }