summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-12-02 20:03:08 +0000
committerLuke Leighton <lkcl@samba.org>1998-12-02 20:03:08 +0000
commit90ce7b9288f23cbf0fe3ce2aecb0b11d283ed531 (patch)
treec199d16ff34beaf2d2a4171ff322713741043b4c /source3
parent7c55f66f4c2824ab109e664b8f30fd328f1cca75 (diff)
downloadsamba-90ce7b9288f23cbf0fe3ce2aecb0b11d283ed531.tar.gz
samba-90ce7b9288f23cbf0fe3ce2aecb0b11d283ed531.tar.bz2
samba-90ce7b9288f23cbf0fe3ce2aecb0b11d283ed531.zip
ERRmoredata is an acceptable error code, it is not an error.
(This used to be commit 9bce7340d60a49594f67cc3c6cc6119b33a5358a)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clientgen.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 5f6408bad1..99d868e216 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -328,6 +328,8 @@ static BOOL cli_receive_trans(struct cli_state *cli,int trans,
int total_data=0;
int total_param=0;
int this_data,this_param;
+ uint8 eclass;
+ uint32 num;
*data_len = *param_len = 0;
@@ -342,7 +344,8 @@ static BOOL cli_receive_trans(struct cli_state *cli,int trans,
return(False);
}
- if (cli_error(cli, NULL, NULL))
+ /* DOS error "more data" is an acceptable error code */
+ if (cli_error(cli, &eclass, &num) && eclass != ERRDOS && num != ERRmoredata)
{
return(False);
}
@@ -393,7 +396,8 @@ static BOOL cli_receive_trans(struct cli_state *cli,int trans,
CVAL(cli->inbuf,smb_com)));
return(False);
}
- if (cli_error(cli, NULL, NULL))
+ /* DOS error "more data" is an acceptable error code */
+ if (cli_error(cli, &eclass, &num) && eclass != ERRDOS && num != ERRmoredata)
{
return(False);
}