mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
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)
This commit is contained in:
parent
bd935df617
commit
3321531e74
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user