mirror of
https://github.com/samba-team/samba.git
synced 2025-11-18 00:23:50 +03:00
r18014: revert a possibly unnecessary change
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
9b6fee5f6f
commit
9c93abf25e
@@ -79,6 +79,7 @@ static BOOL client_receive_smb(int fd,char *buffer, unsigned int timeout)
|
||||
|
||||
BOOL cli_receive_smb(struct cli_state *cli)
|
||||
{
|
||||
extern int smb_read_error;
|
||||
BOOL ret;
|
||||
|
||||
/* fd == -1 causes segfaults -- Tom (tom@ninja.nl) */
|
||||
@@ -108,7 +109,7 @@ BOOL cli_receive_smb(struct cli_state *cli)
|
||||
/* If the server is not responding, note that now */
|
||||
if (!ret) {
|
||||
DEBUG(0, ("Receiving SMB: Server stopped responding\n"));
|
||||
cli->smb_rw_error = READ_TIMEOUT;
|
||||
cli->smb_rw_error = smb_read_error;
|
||||
close(cli->fd);
|
||||
cli->fd = -1;
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user