diff options
author | Derrell Lipman <derrell@samba.org> | 2006-09-03 02:28:22 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:39:48 -0500 |
commit | 6fc90da054e06ac4f9db673e237faed6ccc88207 (patch) | |
tree | eb73428a930551705d4fc7660f33dc931175e204 /source3 | |
parent | 315f4162111d210d0f65123c8c7fe7084a12121c (diff) | |
download | samba-6fc90da054e06ac4f9db673e237faed6ccc88207.tar.gz samba-6fc90da054e06ac4f9db673e237faed6ccc88207.tar.bz2 samba-6fc90da054e06ac4f9db673e237faed6ccc88207.zip |
r18014: revert a possibly unnecessary change
(This used to be commit 9c93abf25e391348fe3864fca0079f231b89467c)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/clientgen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 3a84a5bd4d..24851961d0 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -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; |