From 541f2b73bcb1621f6660266a0165a3d4f3aee521 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 9 Aug 2001 19:22:51 +0000 Subject: Fix inspired by Don @ HP. Close down password server connection if keepalive fails. Jeremy. (This used to be commit 1f6e3d18cdf460eb2569b737813f94d22680553e) --- source3/smbd/process.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source3/smbd/process.c') diff --git a/source3/smbd/process.c b/source3/smbd/process.c index dd2318b58a..65fa600be4 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -1104,7 +1104,10 @@ static BOOL timeout_processing(int deadtime, int *select_timeout, time_t *last_t /* also send a keepalive to the password server if its still connected */ if (cli && cli->initialised) - send_keepalive(cli->fd); + if (!send_keepalive(cli->fd)) { + DEBUG( 2, ( "password server keepalive failed.\n")); + cli_shutdown(cli); + } last_keepalive_sent_time = t; } -- cgit