summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_misc.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-04-19 23:27:35 +0200
committerVolker Lendecke <vl@samba.org>2008-04-20 00:14:26 +0200
commite1102b8f48aeebe7d4e730d2b432a1503b425210 (patch)
tree3179083bb844b6537f3a88c1df2100f51fb6fc81 /source3/winbindd/winbindd_misc.c
parent9048cafbeaf82d1916de6538024fd660612dd25f (diff)
downloadsamba-e1102b8f48aeebe7d4e730d2b432a1503b425210.tar.gz
samba-e1102b8f48aeebe7d4e730d2b432a1503b425210.tar.bz2
samba-e1102b8f48aeebe7d4e730d2b432a1503b425210.zip
Introduce rpccli_set_timeout()
Reduce dependency on "cli" member of rpc_pipe_client struct (This used to be commit 2e4c1ba38963cffe4c3f25ab24bc28975f2fc291)
Diffstat (limited to 'source3/winbindd/winbindd_misc.c')
-rw-r--r--source3/winbindd/winbindd_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/winbindd/winbindd_misc.c b/source3/winbindd/winbindd_misc.c
index 93986d174e..bde2eafb53 100644
--- a/source3/winbindd/winbindd_misc.c
+++ b/source3/winbindd/winbindd_misc.c
@@ -333,7 +333,7 @@ enum winbindd_result winbindd_dual_getdcname(struct winbindd_domain *domain,
/* This call can take a long time - allow the server to time out.
35 seconds should do it. */
- orig_timeout = cli_set_timeout(netlogon_pipe->cli, 35000);
+ orig_timeout = rpccli_set_timeout(netlogon_pipe, 35000);
req_domain = find_domain_from_name_noinit(state->request.domain_name);
if (req_domain == domain) {
@@ -352,7 +352,7 @@ enum winbindd_result winbindd_dual_getdcname(struct winbindd_domain *domain,
&werr);
}
/* And restore our original timeout. */
- cli_set_timeout(netlogon_pipe->cli, orig_timeout);
+ rpccli_set_timeout(netlogon_pipe, orig_timeout);
if (!NT_STATUS_IS_OK(result)) {
DEBUG(5,("Error requesting DCname for domain %s: %s\n",