summaryrefslogtreecommitdiff
path: root/source3/auth/auth_server.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-11 13:55:18 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-11 18:18:28 +0200
commit8c29afe14ecc474d94314c55d730760754f2f067 (patch)
tree09244b0f7f6991a8ba3e321814cd095a84e79be5 /source3/auth/auth_server.c
parent6ec26f0c1a5ac917864078296d6ca89eb65510f9 (diff)
downloadsamba-8c29afe14ecc474d94314c55d730760754f2f067.tar.gz
s3:auth_server: make use of cli_state_is_connected()
metze
Diffstat (limited to 'source3/auth/auth_server.c')
-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 d50ed7a024b..a942c74bf68 100644
--- a/source3/auth/auth_server.c
+++ b/source3/auth/auth_server.c
@@ -159,8 +159,8 @@ static bool send_server_keepalive(const struct timeval *now,
struct server_security_state *state = talloc_get_type_abort(
private_data, struct server_security_state);
- if (!state->cli || !state->cli->initialised) {
- return False;
+ if (!cli_state_is_connected(state->cli)) {
+ return false;
}
if (send_keepalive(state->cli->fd)) {
@@ -285,7 +285,7 @@ static NTSTATUS check_smbserver_security(const struct auth_context *auth_context
locally_made_cli = True;
}
- if (!cli || !cli->initialised) {
+ if (!cli_state_is_connected(cli)) {
DEBUG(1,("password server is not connected (cli not initialised)\n"));
return NT_STATUS_LOGON_FAILURE;
}