fixed a fd leak when trying to regain contact to a domain controller
commitceceb7bded185479aadad2700450591854a383f4
authorAndrew Tridgell <tridge@samba.org>
Wed, 6 Aug 2008 04:02:45 +0000 (6 14:02 +1000)
committerKarolin Seeger <kseeger@samba.org>
Mon, 11 Aug 2008 14:16:15 +0000 (11 16:16 +0200)
tree250317830192d0189152a4e8fba7ed6c97d6d662
parent648fb541542bcd9f0e76d6f5f8b5589f9f02feb7
fixed a fd leak when trying to regain contact to a domain controller
in winbind

When a w2k3 DC is rebooted the 139/445 ports come up before the
udp/389 cldap port. During this brief period, winbind manages to
connect to 139/445 but not to udp 389. It then enters a tight loop
where it leaks one fd each time. In a couple of seconds it runs out of
file descriptors, and leaves winbind crippled after the DC does
finally come up
(cherry picked from commit 57187cafbcc053e75bb54750494df9feabe3a738)
(cherry picked from commit 892e41d60469e1e8adccd2b1ff860210db58dcb0)
source/winbindd/winbindd_cm.c