From 8c29afe14ecc474d94314c55d730760754f2f067 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 11 Jul 2011 13:55:18 +0200 Subject: [PATCH] s3:auth_server: make use of cli_state_is_connected() metze --- source3/auth/auth_server.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/auth/auth_server.c b/source3/auth/auth_server.c index d50ed7a024b4..a942c74bf68d 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; } -- 2.34.1