summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>2000-05-02 10:33:19 +0000
committerLuke Leighton <lkcl@samba.org>2000-05-02 10:33:19 +0000
commit2ad5fae92faa77dc2c304556ee26929b72c601c0 (patch)
treeb52f08675440297d332947d7703d56aea2546f90
parenta3bbd2eec8811e7a4239fe3eb88dbc5e0396eab4 (diff)
downloadsamba-2ad5fae92faa77dc2c304556ee26929b72c601c0.tar.gz
samba-2ad5fae92faa77dc2c304556ee26929b72c601c0.tar.xz
samba-2ad5fae92faa77dc2c304556ee26929b72c601c0.zip
weird bug in client net sam logon, i have *no* idea how it actually
ever worked...
-rw-r--r--source/rpc_client/cli_netlogon.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/source/rpc_client/cli_netlogon.c b/source/rpc_client/cli_netlogon.c
index 1261e370700..f85a2cbaf85 100644
--- a/source/rpc_client/cli_netlogon.c
+++ b/source/rpc_client/cli_netlogon.c
@@ -490,26 +490,21 @@ uint32 cli_net_sam_logon(const char *srv_name, const char *cli_hostname,
net_io_r_sam_logon("", &r_s, &rbuf, 0);
- if (rbuf.offset == 0)
+ if (rbuf.offset != 0)
{
status = NT_STATUS_INVALID_PARAMETER;
}
-
- if (status != 0x0)
+ else
{
- /* report error code */
- DEBUG(5,
- ("cli_net_sam_logon: %s\n",
- get_nt_error_msg(r_s.status)));
+ status = r_s.status;
}
- if (status == 0x0)
+ if (status != 0x0)
{
/* report error code */
DEBUG(5,
("cli_net_sam_logon: %s\n",
- get_nt_error_msg(r_s.status)));
- status = r_s.status;
+ get_nt_error_msg(status)));
}
/* Update the credentials. */