diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-05-16 10:59:04 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:22:10 -0500 |
commit | e24acb681b0f0d3a04c1ae50e6c68369e5edc115 (patch) | |
tree | 7f9c3f76104c101f13d9346e3400c38b06143e52 /source3 | |
parent | cc5c058e5992ae8209caaf8ff63d03eff686ce50 (diff) | |
download | samba-e24acb681b0f0d3a04c1ae50e6c68369e5edc115.tar.gz samba-e24acb681b0f0d3a04c1ae50e6c68369e5edc115.tar.bz2 samba-e24acb681b0f0d3a04c1ae50e6c68369e5edc115.zip |
r22930: Next attempt to get the build farm in line.
Jeremy, please check this and merge if appropriate.
(This used to be commit 0bdf4f1a5937abd0ef266700115d74396bc1629c)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/clientgen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 92a9678de5..ef74de9f4b 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -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; } |