summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-09-11 18:57:49 +0200
committerVolker Lendecke <vl@samba.org>2008-12-19 10:28:30 +0100
commitbb8ca0fdbf0fe68ad2cd47d6f8d68743bfbacdec (patch)
tree99e4cf8220c138e0fce24d8fc87b7f23fb156905 /source3/auth
parent96a3d7be3151c93db9857bb065721c0c7961b2e8 (diff)
downloadsamba-bb8ca0fdbf0fe68ad2cd47d6f8d68743bfbacdec.tar.gz
samba-bb8ca0fdbf0fe68ad2cd47d6f8d68743bfbacdec.tar.bz2
samba-bb8ca0fdbf0fe68ad2cd47d6f8d68743bfbacdec.zip
Make cli_negprot return NTSTATUS instead of bool
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_server.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/auth/auth_server.c b/source3/auth/auth_server.c
index e74e3f5b3b..466c4bf129 100644
--- a/source3/auth/auth_server.c
+++ b/source3/auth/auth_server.c
@@ -38,6 +38,7 @@ static struct cli_state *server_cryptkey(TALLOC_CTX *mem_ctx)
char *pserver = NULL;
bool connected_ok = False;
struct named_mutex *mutex = NULL;
+ NTSTATUS status;
if (!(cli = cli_initialise()))
return NULL;
@@ -49,7 +50,6 @@ static struct cli_state *server_cryptkey(TALLOC_CTX *mem_ctx)
p = pserver;
while(next_token_talloc(mem_ctx, &p, &desthost, LIST_SEP)) {
- NTSTATUS status;
desthost = talloc_sub_basic(mem_ctx,
current_user_info.smb_name,
@@ -112,9 +112,12 @@ static struct cli_state *server_cryptkey(TALLOC_CTX *mem_ctx)
DEBUG(3,("got session\n"));
- if (!cli_negprot(cli)) {
+ status = cli_negprot(cli);
+
+ if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(mutex);
- DEBUG(1,("%s rejected the negprot\n",desthost));
+ DEBUG(1, ("%s rejected the negprot: %s\n",
+ desthost, nt_errstr(status)));
cli_shutdown(cli);
return NULL;
}