summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-06-05 19:46:27 +0200
committerStefan Metzmacher <metze@samba.org>2009-06-05 20:17:42 +0200
commit014ee5d0c21cd18d6c408c8e49331f0aa8611211 (patch)
treef0b3da83eddf5043f93a699472dd253482419965 /source3/smbd
parenta3e328859b0004b974d38f0feae8ca6894c9b014 (diff)
downloadsamba-014ee5d0c21cd18d6c408c8e49331f0aa8611211.tar.gz
samba-014ee5d0c21cd18d6c408c8e49331f0aa8611211.tar.bz2
samba-014ee5d0c21cd18d6c408c8e49331f0aa8611211.zip
s3:smbd: only setup the dyn iovec if a a dyn blob is given
Otherwise leave the default in there, which takes care of padding for compounded requests. metze
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/smb2_server.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index 75138a85a0..be2f3b10e4 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -663,8 +663,7 @@ NTSTATUS smbd_smb2_request_done_ex(struct smbd_smb2_request *req,
req->out.vector[i+2].iov_base = (void *)dyn->data;
req->out.vector[i+2].iov_len = dyn->length;
} else {
- req->out.vector[i+2].iov_base = (void *)outdyn;
- req->out.vector[i+2].iov_len = 1;
+ /* the dyn section is already initialized */
}
} else {
req->out.vector[i+2].iov_base = NULL;