summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/winbindd_cm.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-10-06 16:13:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:16 -0500
commit44e228ac796fca2db8509915067511ed705032bf (patch)
treed2675eb82d3f09b2496c7bafbb0c4941093a949f /source/nsswitch/winbindd_cm.c
parentdb40552d9471f4a8ce2c5c724319a4eb242ed24a (diff)
downloadsamba-44e228ac796fca2db8509915067511ed705032bf.tar.gz
samba-44e228ac796fca2db8509915067511ed705032bf.tar.xz
samba-44e228ac796fca2db8509915067511ed705032bf.zip
r19143: getdcname on the NETLOGON pipe returns WERROR, not NTSTATUS.
Guenther
Diffstat (limited to 'source/nsswitch/winbindd_cm.c')
-rw-r--r--source/nsswitch/winbindd_cm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/nsswitch/winbindd_cm.c b/source/nsswitch/winbindd_cm.c
index 17663a7cfcd..8f82f97d88d 100644
--- a/source/nsswitch/winbindd_cm.c
+++ b/source/nsswitch/winbindd_cm.c
@@ -289,6 +289,7 @@ static BOOL get_dc_name_via_netlogon(const struct winbindd_domain *domain,
struct winbindd_domain *our_domain = NULL;
struct rpc_pipe_client *netlogon_pipe = NULL;
NTSTATUS result;
+ WERROR werr;
TALLOC_CTX *mem_ctx;
fstring tmp;
@@ -316,14 +317,14 @@ static BOOL get_dc_name_via_netlogon(const struct winbindd_domain *domain,
return False;
}
- result = rpccli_netlogon_getdcname(netlogon_pipe, mem_ctx, our_domain->dcname,
+ werr = rpccli_netlogon_getdcname(netlogon_pipe, mem_ctx, our_domain->dcname,
domain->name, tmp);
talloc_destroy(mem_ctx);
- if (!NT_STATUS_IS_OK(result)) {
+ if (!W_ERROR_IS_OK(werr)) {
DEBUG(10, ("rpccli_netlogon_getdcname failed: %s\n",
- nt_errstr(result)));
+ dos_errstr(werr)));
return False;
}