mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
s3:client: ignore SMBecho errors (the server may not support it) (bug #8139)
metze
This commit is contained in:
parent
27c686dd70
commit
6b8a4c96e8
@ -5032,9 +5032,13 @@ static void readline_callback(void)
|
|||||||
/* Ping the server to keep the connection alive using SMBecho. */
|
/* Ping the server to keep the connection alive using SMBecho. */
|
||||||
memset(garbage, 0xf0, sizeof(garbage));
|
memset(garbage, 0xf0, sizeof(garbage));
|
||||||
status = cli_echo(cli, 1, data_blob_const(garbage, sizeof(garbage)));
|
status = cli_echo(cli, 1, data_blob_const(garbage, sizeof(garbage)));
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
if (NT_STATUS_IS_OK(status)) {
|
||||||
DEBUG(0, ("SMBecho failed (%s). Maybe server has closed "
|
return;
|
||||||
"the connection\n", nt_errstr(status)));
|
}
|
||||||
|
|
||||||
|
if (!cli_state_is_connected(cli)) {
|
||||||
|
DEBUG(0,("SMBecho failed (%s). The connection is "
|
||||||
|
"disconnected now\n", nt_errstr(status)));
|
||||||
finished = true;
|
finished = true;
|
||||||
smb_readline_done();
|
smb_readline_done();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user