From 2ad5fae92faa77dc2c304556ee26929b72c601c0 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Tue, 2 May 2000 10:33:19 +0000 Subject: weird bug in client net sam logon, i have *no* idea how it actually ever worked... --- source/rpc_client/cli_netlogon.c | 15 +++++---------- 1 file 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. */ -- cgit