summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-01-16 21:13:29 +0100
committerVolker Lendecke <vlendec@samba.org>2011-01-17 08:47:25 +0100
commitd3abc90401c65e66de26cdfb2432ef023732dce7 (patch)
treef0b1b91e399b67baa210f90a84e789276fd8158a /source3/auth
parentc7a5933e4b907d0dc50c01b299a5822392c86049 (diff)
downloadsamba-d3abc90401c65e66de26cdfb2432ef023732dce7.tar.gz
samba-d3abc90401c65e66de26cdfb2432ef023732dce7.tar.bz2
samba-d3abc90401c65e66de26cdfb2432ef023732dce7.zip
s3: Avoid a few calls to cli_errstr
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Jan 17 08:47:25 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/auth/auth_server.c b/source3/auth/auth_server.c
index ac757d5a35..fc46ce0148 100644
--- a/source3/auth/auth_server.c
+++ b/source3/auth/auth_server.c
@@ -135,11 +135,11 @@ static struct cli_state *server_cryptkey(TALLOC_CTX *mem_ctx)
this one...
*/
- if (!NT_STATUS_IS_OK(cli_session_setup(cli, "", "", 0, "", 0,
- ""))) {
+ status = cli_session_setup(cli, "", "", 0, "", 0, "");
+ if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(mutex);
DEBUG(0,("%s rejected the initial session setup (%s)\n",
- desthost, cli_errstr(cli)));
+ desthost, nt_errstr(status)));
cli_shutdown(cli);
return NULL;
}