fixed a fd leak when trying to regain contact to a domain controller
authorAndrew Tridgell <tridge@samba.org>
Wed, 6 Aug 2008 04:02:45 +0000 (14:02 +1000)
committerMichael Adam <obnox@samba.org>
Wed, 6 Aug 2008 08:50:16 +0000 (10:50 +0200)
commit57187cafbcc053e75bb54750494df9feabe3a738
tree32d0aef142bbdc9b12eeb5e5891eb2ac33af7414
parentf8f21c8e3922806230e240cb54205fc2db7a3619
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
source/winbindd/winbindd_cm.c