summaryrefslogtreecommitdiff
path: root/source3/libsmb/clidgram.h
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/libsmb/clidgram.h
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/libsmb/clidgram.h')
-rw-r--r--source3/libsmb/clidgram.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libsmb/clidgram.h b/source3/libsmb/clidgram.h
index a449724a41..6cd6222df6 100644
--- a/source3/libsmb/clidgram.h
+++ b/source3/libsmb/clidgram.h
@@ -37,6 +37,7 @@ NTSTATUS nbt_getdc_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
uint32_t *nt_version, const char **dc_name,
struct netlogon_samlogon_response **samlogon_response);
NTSTATUS nbt_getdc(struct messaging_context *msg_ctx,
+ uint32_t timeout_in_seconds,
const struct sockaddr_storage *dc_addr,
const char *domain_name,
const struct dom_sid *sid,