mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
Patch from Andrew Bartlett <abartlet@samba.org> for security=server core
dump if server goes away.
Jeremy.
(This used to be commit e61324cc6a
)
This commit is contained in:
parent
970c1c73db
commit
33e6af5b3d
@ -153,14 +153,16 @@ static void free_server_private_data(void **private_data_pointer)
|
||||
|
||||
static void send_server_keepalive(void **private_data_pointer)
|
||||
{
|
||||
struct cli_state **cli = (struct cli_state **)private_data_pointer;
|
||||
|
||||
/* also send a keepalive to the password server if its still
|
||||
connected */
|
||||
if (cli && *cli && (*cli)->initialised) {
|
||||
if (!send_keepalive((*cli)->fd)) {
|
||||
DEBUG( 2, ( "password server keepalive failed.\n"));
|
||||
cli_shutdown(*cli);
|
||||
if (private_data_pointer) {
|
||||
struct cli_state *cli = (struct cli_state *)(*private_data_pointer);
|
||||
if (cli && cli->initialised) {
|
||||
if (!send_keepalive(cli->fd)) {
|
||||
DEBUG( 2, ( "send_server_keepalive: password server keepalive failed.\n"));
|
||||
cli_shutdown(cli);
|
||||
*private_data_pointer = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user