1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

r22930: Next attempt to get the build farm in line.

Jeremy, please check this and merge if appropriate.
(This used to be commit 0bdf4f1a59)
This commit is contained in:
Volker Lendecke
2007-05-16 10:59:04 +00:00
committed by Gerald (Jerry) Carter
parent cc5c058e59
commit e24acb681b

View File

@ -260,7 +260,8 @@ BOOL cli_receive_smb_readX_header(struct cli_state *cli)
}
/* Read the rest of the data. */
if (!cli_receive_smb_data(cli,cli->inbuf+len,total_len - len)) {
if ((total_len - len > 0) &&
!cli_receive_smb_data(cli,cli->inbuf+len,total_len - len)) {
goto read_err;
}