diff options
author | Tim Potter <tpot@samba.org> | 2001-08-10 05:50:20 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-08-10 05:50:20 +0000 |
commit | af0af3d42a9a3f80af5db0efb57692fc87f81763 (patch) | |
tree | 4ba8eb11fb21cf5f382b7a9d87a80f14bc3690fd /source3 | |
parent | 047a7c88d7d004f1581f585dd31caea388ab6f0d (diff) | |
download | samba-af0af3d42a9a3f80af5db0efb57692fc87f81763.tar.gz samba-af0af3d42a9a3f80af5db0efb57692fc87f81763.tar.bz2 samba-af0af3d42a9a3f80af5db0efb57692fc87f81763.zip |
Removed nt_error field from cli_state as it was not used anywhere.
(This used to be commit 589aaa5fb1ac55d8b0d5ae95921f071eb6ddacf6)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/client.h | 1 | ||||
-rw-r--r-- | source3/rpc_client/cli_netlogon.c | 8 |
2 files changed, 1 insertions, 8 deletions
diff --git a/source3/include/client.h b/source3/include/client.h index ecd97c1433..61a5633b98 100644 --- a/source3/include/client.h +++ b/source3/include/client.h @@ -114,7 +114,6 @@ struct cli_state { * Only used in NT domain calls. */ - uint32 nt_error; /* NT RPC error code. */ uint16 nt_pipe_fnum; /* Pipe handle. */ unsigned char sess_key[16]; /* Current session key. */ unsigned char ntlmssp_hash[258]; /* ntlmssp data. */ diff --git a/source3/rpc_client/cli_netlogon.c b/source3/rpc_client/cli_netlogon.c index 5b96c8300f..0568c04ed8 100644 --- a/source3/rpc_client/cli_netlogon.c +++ b/source3/rpc_client/cli_netlogon.c @@ -158,7 +158,6 @@ BOOL cli_net_auth2(struct cli_state *cli, uint16 sec_chan, { /* report error code */ DEBUG(0,("cli_net_auth2: Error %s\n", get_nt_error_msg(r_a.status))); - cli->nt_error = r_a.status; ok = False; } @@ -248,7 +247,6 @@ BOOL cli_net_req_chal(struct cli_state *cli, DOM_CHAL *clnt_chal, DOM_CHAL *srv_ { /* report error code */ DEBUG(0,("cli_net_req_chal: Error %s\n", get_nt_error_msg(r_c.status))); - cli->nt_error = r_c.status; ok = False; } @@ -314,7 +312,6 @@ BOOL cli_net_srv_pwset(struct cli_state *cli, uint8 hashed_mach_pwd[16]) { /* report error code */ DEBUG(0,("cli_net_srv_pwset: %s\n", get_nt_error_msg(r_s.status))); - cli->nt_error = r_s.status; ok = False; } @@ -350,7 +347,7 @@ static uint32 cli_net_sam_logon_internal(struct cli_state *cli, NET_ID_INFO_CTR prs_struct buf; NET_Q_SAM_LOGON q_s; NET_R_SAM_LOGON r_s; - uint32 retval; + uint32 retval = 0; gen_next_creds( cli, &new_clnt_cred); @@ -383,7 +380,6 @@ static uint32 cli_net_sam_logon_internal(struct cli_state *cli, NET_ID_INFO_CTR /* send the data on \PIPE\ */ if (!rpc_api_pipe_req(cli, NET_SAMLOGON, &buf, &rbuf)) { DEBUG(0,("cli_net_sam_logon_internal: Erro rpc_api_pipe_req failed.\n")); - retval = cli->nt_error; goto out; } @@ -409,7 +405,6 @@ static uint32 cli_net_sam_logon_internal(struct cli_state *cli, NET_ID_INFO_CTR if (retval != 0) { /* report error code */ DEBUG(0,("cli_net_sam_logon_internal: %s\n", get_nt_error_msg(r_s.status))); - cli->nt_error = r_s.status; goto out; } @@ -529,7 +524,6 @@ BOOL cli_net_sam_logoff(struct cli_state *cli, NET_ID_INFO_CTR *ctr) { /* report error code */ DEBUG(0,("cli_net_sam_logoff: %s\n", get_nt_error_msg(r_s.status))); - cli->nt_error = r_s.status; ok = False; } |