Fix bug #8953 - winbind can hang as nbt_getdc() has no timeout.
authorJeremy Allison <jra@samba.org>
Tue, 29 May 2012 23:37:35 +0000 (16:37 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 31 May 2012 19:05:01 +0000 (21:05 +0200)
commit0d9d67d180ffea2a4e1942ec0c34ce3b4910fe18
tree2246cbed2761a5afa0c12aede3a8a90aeee869e6
parentdea11050ae2e9b2dd4ceb231760d41b68e11f5fd
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