diff options
author | Tim Potter <tpot@samba.org> | 2001-09-18 02:49:35 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-09-18 02:49:35 +0000 |
commit | 15a6649c01195f2b385fbfd7e54279c1acc3a878 (patch) | |
tree | a52eb35ea4ddd147db807039883bbf1f0240167a /source3/rpcclient | |
parent | 006c8342de3c962f38135aab738e51f0871d440d (diff) | |
download | samba-15a6649c01195f2b385fbfd7e54279c1acc3a878.tar.gz samba-15a6649c01195f2b385fbfd7e54279c1acc3a878.tar.bz2 samba-15a6649c01195f2b385fbfd7e54279c1acc3a878.zip |
Converted cli_net_auth2() and cli_nt_setup_creds() to return NTSTATUS.
(This used to be commit e0bdcbc5994345fdc76f7590dba7bce5f0127d58)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_netlogon.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/rpcclient/cmd_netlogon.c b/source3/rpcclient/cmd_netlogon.c index 41bf8883a2..3adae373ff 100644 --- a/source3/rpcclient/cmd_netlogon.c +++ b/source3/rpcclient/cmd_netlogon.c @@ -212,7 +212,9 @@ static NTSTATUS cmd_netlogon_sam_sync(struct cli_state *cli, int argc, goto done; } - if (!cli_nt_setup_creds(cli, trust_passwd)) { + result = cli_nt_setup_creds(cli, trust_passwd); + + if (!NT_STATUS_IS_OK(result)) { DEBUG(0, ("Error initialising session creds\n")); goto done; } @@ -285,7 +287,9 @@ static NTSTATUS cmd_netlogon_sam_deltas(struct cli_state *cli, int argc, goto done; } - if (!cli_nt_setup_creds(cli, trust_passwd)) { + result = cli_nt_setup_creds(cli, trust_passwd); + + if (!NT_STATUS_IS_OK(result)) { DEBUG(0, ("Error initialising session creds\n")); goto done; } |