summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1997-02-03 19:40:15 +0000
committerSamba Release Account <samba-bugs@samba.org>1997-02-03 19:40:15 +0000
commitf0aa5e3ff05053224cffc8243237e7675e8b413b (patch)
treeb7b227048245025a3d402bcb84c4a6abe56bd8cf /source
parentd5b6ad7cb87d6b1a9342f027ac4f57ffdb54b4f3 (diff)
downloadsamba-f0aa5e3ff05053224cffc8243237e7675e8b413b.tar.gz
samba-f0aa5e3ff05053224cffc8243237e7675e8b413b.tar.xz
samba-f0aa5e3ff05053224cffc8243237e7675e8b413b.zip
Fixed bug with NT and large directories.
jra@cygnus.com
Diffstat (limited to 'source')
-rw-r--r--source/smbd/trans2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c
index 94c4f26359e..2df28e92645 100644
--- a/source/smbd/trans2.c
+++ b/source/smbd/trans2.c
@@ -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);