Fixed bug with NT and large directories.
authorSamba Release Account <samba-bugs@samba.org>
Mon, 3 Feb 1997 19:40:15 +0000 (19:40 +0000)
committerSamba Release Account <samba-bugs@samba.org>
Mon, 3 Feb 1997 19:40:15 +0000 (19:40 +0000)
jra@cygnus.com

source/smbd/trans2.c

index 94c4f26359eb333323eba114b983cc0c5e325cb9..2df28e926453e9e676d18c03408bdcd9f4965a29 100644 (file)
@@ -79,8 +79,8 @@ static int send_trans2_replies(char *outbuf, int bufsize, char *params,
     {
       /* Calculate whether we will totally or partially fill this packet */
       total_sent_thistime = params_to_send + data_to_send + alignment_offset;
-      /* We can never send more than maxxmit */
-      total_sent_thistime = MIN(total_sent_thistime, maxxmit);
+      /* We can never send more than useable_space */
+      total_sent_thistime = MIN(total_sent_thistime, useable_space);
 
       set_message(outbuf, 10, total_sent_thistime, True);