From 014ee5d0c21cd18d6c408c8e49331f0aa8611211 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 5 Jun 2009 19:46:27 +0200 Subject: 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 --- source3/smbd/smb2_server.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/smbd') 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; -- cgit