1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-21 01:59:07 +03:00

ERRmoredata is an acceptable error code, it is not an error.

This commit is contained in:
Luke Leighton -
parent a74b6dcc76
commit 9bce7340d6

View File

@ -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);
}