Author: vlendec
Date: 2007-05-16 10:59:04 +0000 (Wed, 16 May 2007)
New Revision: 22930

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22930

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

Jeremy, please check this and merge if appropriate.

Modified:
   branches/SAMBA_3_0/source/libsmb/clientgen.c


Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/clientgen.c
===================================================================
--- branches/SAMBA_3_0/source/libsmb/clientgen.c        2007-05-16 09:53:41 UTC 
(rev 22929)
+++ branches/SAMBA_3_0/source/libsmb/clientgen.c        2007-05-16 10:59:04 UTC 
(rev 22930)
@@ -260,7 +260,8 @@
                        }
 
                        /* 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;
                        }
 

Reply via email to