]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r18014: revert a possibly unnecessary change
authorDerrell Lipman <derrell@samba.org>
Sun, 3 Sep 2006 02:28:22 +0000 (02:28 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:39:48 +0000 (11:39 -0500)
(This used to be commit 9c93abf25e391348fe3864fca0079f231b89467c)

source3/libsmb/clientgen.c

index 3a84a5bd4d1afab8e81eaec58a3c615ced2cbf5e..24851961d03f09724331d9fececf02b692674626 100644 (file)
@@ -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;