diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-07-11 13:55:18 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-11 18:18:28 +0200 |
commit | 8c29afe14ecc474d94314c55d730760754f2f067 (patch) | |
tree | 09244b0f7f6991a8ba3e321814cd095a84e79be5 /source3 | |
parent | 6ec26f0c1a5ac917864078296d6ca89eb65510f9 (diff) | |
download | samba-8c29afe14ecc474d94314c55d730760754f2f067.tar.gz samba-8c29afe14ecc474d94314c55d730760754f2f067.tar.bz2 samba-8c29afe14ecc474d94314c55d730760754f2f067.zip |
s3:auth_server: make use of cli_state_is_connected()
metze
Diffstat (limited to 'source3')
-rw-r--r-- | source3/auth/auth_server.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/auth/auth_server.c b/source3/auth/auth_server.c index d50ed7a024..a942c74bf6 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; } |