git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3e3288
)
s3:smbd: only setup the dyn iovec if a a dyn blob is given
author
Stefan Metzmacher
<metze@samba.org>
Fri, 5 Jun 2009 17:46:27 +0000
(19:46 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 5 Jun 2009 18:17:42 +0000
(20:17 +0200)
Otherwise leave the default in there, which takes care of
padding for compounded requests.
metze
source3/smbd/smb2_server.c
patch
|
blob
|
history
diff --git
a/source3/smbd/smb2_server.c
b/source3/smbd/smb2_server.c
index 75138a85a0a1b6c1cfdc37da4f9804cfaa79e589..be2f3b10e4a92bb5d58e27418b7d8554326c276b 100644
(file)
--- 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;