From: Jeremy Allison Date: Thu, 9 Aug 2001 19:22:51 +0000 (+0000) Subject: Fix inspired by Don @ HP. Close down password server connection if keepalive X-Git-Tag: samba-2.2.5pre1~1679^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1f6e3d18cdf460eb2569b737813f94d22680553e;p=thirdparty%2Fsamba.git Fix inspired by Don @ HP. Close down password server connection if keepalive fails. Jeremy. --- diff --git a/source/smbd/process.c b/source/smbd/process.c index dd2318b58a8..65fa600be46 100644 --- a/source/smbd/process.c +++ b/source/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; }