Fix bug #8953 - winbind can hang as nbt_getdc() has no timeout.
commitd2a03ca2a432b54d5c681d4cf5999ed7d1d93609
authorJeremy Allison <jra@samba.org>
Tue, 29 May 2012 23:37:35 +0000 (29 16:37 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 22 Jun 2012 19:49:38 +0000 (22 21:49 +0200)
treedd8f88456a79281738f18fc47957bfdca5820760
parent3fcc3d0addb0e207d2d3ca97d8f9b02214fbd485
Fix bug #8953 - winbind can hang as nbt_getdc() has no timeout.

Add a timeout_in_seconds parameter to nbt_getdc() to make it fail
after that time with NT_STATUS_IO_TIMEOUT.
(cherry picked from commit 0d9d67d180ffea2a4e1942ec0c34ce3b4910fe18)
source3/libsmb/clidgram.c
source3/libsmb/clidgram.h
source3/libsmb/dsgetdcname.c
source3/winbindd/winbindd_cm.c