diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-06-05 19:46:27 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-06-05 20:17:42 +0200 |
commit | 014ee5d0c21cd18d6c408c8e49331f0aa8611211 (patch) | |
tree | f0b3da83eddf5043f93a699472dd253482419965 /source3/smbd | |
parent | a3e328859b0004b974d38f0feae8ca6894c9b014 (diff) | |
download | samba-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.c | 3 |
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; |