From: Stefan Metzmacher Date: Fri, 5 Jun 2009 17:46:27 +0000 (+0200) Subject: s3:smbd: only setup the dyn iovec if a a dyn blob is given X-Git-Tag: tdb-1.1.5~263 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=014ee5d0c21cd18d6c408c8e49331f0aa8611211;p=thirdparty%2Fsamba.git 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 --- diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index 75138a85a0a..be2f3b10e4a 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;