summaryrefslogtreecommitdiff
path: root/source4/libcli/smb2/find.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-11-25 08:24:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:43 -0500
commitd90914dda878a21372a9e6c4025a61f903c12313 (patch)
tree93c1c8014343fe06555b5ad1c35d3fb496aa0cf5 /source4/libcli/smb2/find.c
parentb227b98a6c87b18db2bc949241ead6bbc46baff4 (diff)
downloadsamba-d90914dda878a21372a9e6c4025a61f903c12313.tar.gz
samba-d90914dda878a21372a9e6c4025a61f903c12313.tar.bz2
samba-d90914dda878a21372a9e6c4025a61f903c12313.zip
r11895: - reorder some code to make it easier to follow, how the fields appear on the wire
- add some comments to the header file, to represent the wire format metze (This used to be commit fa98f09f8b8829e66aa37cd947ab4f0cbb7b5476)
Diffstat (limited to 'source4/libcli/smb2/find.c')
-rw-r--r--source4/libcli/smb2/find.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/libcli/smb2/find.c b/source4/libcli/smb2/find.c
index 273c3cad6a..aa14347022 100644
--- a/source4/libcli/smb2/find.c
+++ b/source4/libcli/smb2/find.c
@@ -40,7 +40,6 @@ struct smb2_request *smb2_find_send(struct smb2_tree *tree, struct smb2_find *io
SCVAL(req->out.body, 0x03, io->in.continue_flags);
SIVAL(req->out.body, 0x04, io->in.unknown);
smb2_push_handle(req->out.body+0x08, &io->in.handle);
- SIVAL(req->out.body, 0x1C, io->in.max_response_size);
status = smb2_push_o16s16_string(&req->out, 0x18, io->in.pattern);
if (!NT_STATUS_IS_OK(status)) {
@@ -48,6 +47,8 @@ struct smb2_request *smb2_find_send(struct smb2_tree *tree, struct smb2_find *io
return NULL;
}
+ SIVAL(req->out.body, 0x1C, io->in.max_response_size);
+
smb2_transport_send(req);
return req;