mirror of
https://github.com/samba-team/samba.git
synced 2025-01-29 21:47:30 +03:00
Fix inspired by Don @ HP. Close down password server connection if keepalive
fails. Jeremy.
This commit is contained in:
parent
61141c371a
commit
1f6e3d18cd
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user