git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03f9c61
)
s3:smbd: fix the maxentries calculation depending on the max_send.
author
Stefan Metzmacher
<metze@samba.org>
Wed, 5 Mar 2014 13:03:42 +0000
(14:03 +0100)
committer
Karolin Seeger
<kseeger@samba.org>
Tue, 1 Apr 2014 07:08:06 +0000
(09:08 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit
c899d4fd9c5a337ab82acdf11866df50fb0629e0
)
source3/smbd/reply.c
patch
|
blob
|
history
diff --git
a/source3/smbd/reply.c
b/source3/smbd/reply.c
index 2dea74daf6360639597ba327f859b0ba97aa1774..adf4b6fe677cb51b00b9744fb7db2ade6002e88d 100644
(file)
--- a/
source3/smbd/reply.c
+++ b/
source3/smbd/reply.c
@@
-1698,7
+1698,7
@@
void reply_search(struct smb_request *req)
} else {
unsigned int i;
size_t hdr_size = ((uint8_t *)smb_buf(req->outbuf) + 3 - req->outbuf);
- size_t available_space =
BUFFER_SIZE
- hdr_size;
+ size_t available_space =
sconn->smb1.sessions.max_send
- hdr_size;
maxentries = MIN(maxentries, available_space/DIR_STRUCT_SIZE);