summaryrefslogtreecommitdiffstats
path: root/source3/smbd/smb2_find.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2014-08-26 14:54:56 -0700
committerDavid Disseldorp <ddiss@samba.org>2014-09-16 01:56:55 +0200
commitc9877eaf1b0ee83e4227483cb6891f94712bd32f (patch)
tree94429061155d3b9c625f57a672bbe45c0bf553fb /source3/smbd/smb2_find.c
parent5293dd2f635f049cd0632b071307df6a6c52d9b0 (diff)
downloadsamba-c9877eaf1b0ee83e4227483cb6891f94712bd32f.tar.gz
samba-c9877eaf1b0ee83e4227483cb6891f94712bd32f.tar.xz
samba-c9877eaf1b0ee83e4227483cb6891f94712bd32f.zip
s3: smbd: Remove unneeded 'out_of_space' parameter from smbd_dirptr_lanman2_entry().
This can now be handled by checking for the STATUS_MORE_ENTRIES error return. Bug 10775 - smbd crashes when accessing garbage filenames https://bugzilla.samba.org/show_bug.cgi?id=10775 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
Diffstat (limited to 'source3/smbd/smb2_find.c')
-rw-r--r--source3/smbd/smb2_find.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source3/smbd/smb2_find.c b/source3/smbd/smb2_find.c
index af9995e423..2dab86b567 100644
--- a/source3/smbd/smb2_find.c
+++ b/source3/smbd/smb2_find.c
@@ -433,7 +433,6 @@ static struct tevent_req *smbd_smb2_find_send(TALLOC_CTX *mem_ctx,
while (true) {
bool got_exact_match = false;
- bool out_of_space = false;
int space_remaining = in_output_buffer_length - off;
SMB_ASSERT(space_remaining >= 0);
@@ -454,7 +453,6 @@ static struct tevent_req *smbd_smb2_find_send(TALLOC_CTX *mem_ctx,
base_data,
end_data,
space_remaining,
- &out_of_space,
&got_exact_match,
&last_entry_off,
NULL);