summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_netlogon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_client/cli_netlogon.c b/source3/rpc_client/cli_netlogon.c
index 968c2182be..015b28c16f 100644
--- a/source3/rpc_client/cli_netlogon.c
+++ b/source3/rpc_client/cli_netlogon.c
@@ -387,7 +387,7 @@ NTSTATUS rpccli_netlogon_getdcname(struct rpc_pipe_client *cli,
prs_struct qbuf, rbuf;
NET_Q_GETDCNAME q;
NET_R_GETDCNAME r;
- NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
+ NTSTATUS result;
ZERO_STRUCT(q);
ZERO_STRUCT(r);
@@ -405,7 +405,7 @@ NTSTATUS rpccli_netlogon_getdcname(struct rpc_pipe_client *cli,
net_io_r_getdcname,
NT_STATUS_UNSUCCESSFUL);
- if (NT_STATUS_IS_OK(result)) {
+ if (NT_STATUS_IS_OK(result = r.status)) {
rpcstr_pull_unistr2_fstring(newdcname, &r.uni_dcname);
}