]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r22930: Next attempt to get the build farm in line.
authorVolker Lendecke <vlendec@samba.org>
Wed, 16 May 2007 10:59:04 +0000 (10:59 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:22:10 +0000 (12:22 -0500)
Jeremy, please check this and merge if appropriate.
(This used to be commit 0bdf4f1a5937abd0ef266700115d74396bc1629c)

source3/libsmb/clientgen.c

index 92a9678de5653383f6eef10c0729ee54023970e0..ef74de9f4ba26b9f35bb96b5f9a7c32a0f2c6fbf 100644 (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;
                        }