diff options
author | Volker Lendecke <vlendec@samba.org> | 2005-10-27 08:27:48 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:05:11 -0500 |
commit | 3321531e74bc122b9bfa11a072497e8d738ef841 (patch) | |
tree | 11e6c5c6b069d92cde59dc5d6b926abd95062a79 /source3 | |
parent | bd935df61704c60f11aca77826f977e549078c1a (diff) | |
download | samba-3321531e74bc122b9bfa11a072497e8d738ef841.tar.gz samba-3321531e74bc122b9bfa11a072497e8d738ef841.tar.bz2 samba-3321531e74bc122b9bfa11a072497e8d738ef841.zip |
r11320: Fix error handling for rpccli_netlogon_getdcname. Jeremy, the other functions
in cli_netlogon look similarly suspicious.
Volker
(This used to be commit 8d7713431efd80bd358daffcbbc4d715611b8b4b)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_client/cli_netlogon.c | 4 |
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); } |