summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-05-22 16:25:14 -0700
committerJeremy Allison <jra@samba.org>2012-05-22 16:25:14 -0700
commitd6734029924e849dcd336728dde8d24141e8ccc3 (patch)
tree6c9140be039bff749cea88213b0b33a47c51243d /source3/winbindd
parentf9e4105f4170181989c44a2326a8a8a89314fc98 (diff)
downloadsamba-d6734029924e849dcd336728dde8d24141e8ccc3.tar.gz
samba-d6734029924e849dcd336728dde8d24141e8ccc3.tar.bz2
samba-d6734029924e849dcd336728dde8d24141e8ccc3.zip
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.
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_cm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c
index 4188b5e6ed..cf1eb8bd0e 100644
--- a/source3/winbindd/winbindd_cm.c
+++ b/source3/winbindd/winbindd_cm.c
@@ -1161,7 +1161,7 @@ static bool dcip_to_name(TALLOC_CTX *mem_ctx,
}
#endif
- status = nbt_getdc(winbind_messaging_context(), pss, domain->name,
+ status = nbt_getdc(winbind_messaging_context(), 10, pss, domain->name,
&domain->sid, nt_version, mem_ctx, &nt_version,
&dc_name, NULL);
if (NT_STATUS_IS_OK(status)) {