From 30ae26ba426eefef3928e699c46f01eb56f49fa8 Mon Sep 17 00:00:00 2001 From: Samba Release Account Date: Mon, 3 Feb 1997 19:40:15 +0000 Subject: Fixed bug with NT and large directories. jra@cygnus.com (This used to be commit f0aa5e3ff05053224cffc8243237e7675e8b413b) --- source3/smbd/trans2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 94c4f26359..2df28e9264 100644 --- a/source3/smbd/trans2.c +++ b/source3/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); -- cgit