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:
committed by
Gerald (Jerry) Carter
parent
cc5c058e59
commit
e24acb681b
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user