summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-08-09 19:22:51 +0000
committerJeremy Allison <jra@samba.org>2001-08-09 19:22:51 +0000
commit541f2b73bcb1621f6660266a0165a3d4f3aee521 (patch)
treeef8903b512f7067984c86be8d553dba6cf57e6d7 /source3/smbd
parentf0ce79331f9c22f2e2efc6ca3f6eac1561569c71 (diff)
downloadsamba-541f2b73bcb1621f6660266a0165a3d4f3aee521.tar.gz
samba-541f2b73bcb1621f6660266a0165a3d4f3aee521.tar.bz2
samba-541f2b73bcb1621f6660266a0165a3d4f3aee521.zip
Fix inspired by Don @ HP. Close down password server connection if keepalive
fails. Jeremy. (This used to be commit 1f6e3d18cdf460eb2569b737813f94d22680553e)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/process.c5
1 files changed, 4 insertions, 1 deletions
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;
}