diff options
author | Björn Baumbach <bb@sernet.de> | 2011-11-16 16:52:38 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-11-16 19:02:12 +0100 |
commit | aef5fcbfc74ab1e078d7133169215aeef1fab30e (patch) | |
tree | e3a35a67f33225947373c79a4bbe57dbe2614d76 /source3/winbindd | |
parent | 6003debf7e0df7b61df03d2b55551715180329c4 (diff) | |
download | samba-aef5fcbfc74ab1e078d7133169215aeef1fab30e.tar.gz samba-aef5fcbfc74ab1e078d7133169215aeef1fab30e.tar.bz2 samba-aef5fcbfc74ab1e078d7133169215aeef1fab30e.zip |
s3-winbindd/winbindd_cm.c: remove cli_nt_error()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/winbindd')
-rw-r--r-- | source3/winbindd/winbindd_cm.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c index 67eea56d1a..7cfcaba545 100644 --- a/source3/winbindd/winbindd_cm.c +++ b/source3/winbindd/winbindd_cm.c @@ -942,8 +942,8 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain, "connection for DC %s\n", controller )); - if (NT_STATUS_IS_OK(cli_session_setup(*cli, "", NULL, 0, - NULL, 0, ""))) { + result = cli_session_setup(*cli, "", NULL, 0, NULL, 0, ""); + if (NT_STATUS_IS_OK(result)) { DEBUG(5, ("Connected anonymously\n")); result = cli_init_creds(*cli, "", "", ""); if (!NT_STATUS_IS_OK(result)) { @@ -952,13 +952,7 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain, goto session_setup_done; } - result = cli_nt_error(*cli); - - if (NT_STATUS_IS_OK(result)) - result = NT_STATUS_UNSUCCESSFUL; - /* We can't session setup */ - goto done; session_setup_done: |