summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorBjörn Baumbach <bb@sernet.de>2011-11-16 16:52:38 +0100
committerStefan Metzmacher <metze@samba.org>2011-11-16 19:02:12 +0100
commitaef5fcbfc74ab1e078d7133169215aeef1fab30e (patch)
treee3a35a67f33225947373c79a4bbe57dbe2614d76 /source3
parent6003debf7e0df7b61df03d2b55551715180329c4 (diff)
downloadsamba-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')
-rw-r--r--source3/winbindd/winbindd_cm.c10
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: