Fix bug #8953 - winbind can hang as nbt_getdc() has no timeout.
authorJeremy Allison <jra@samba.org>
Tue, 22 May 2012 23:25:14 +0000 (16:25 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 22 May 2012 23:25:14 +0000 (16:25 -0700)
commitd6734029924e849dcd336728dde8d24141e8ccc3
tree6c9140be039bff749cea88213b0b33a47c51243d
parentf9e4105f4170181989c44a2326a8a8a89314fc98
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.
source3/libsmb/clidgram.c
source3/libsmb/clidgram.h
source3/libsmb/dsgetdcname.c
source3/winbindd/winbindd_cm.c