s3:smbd: only setup the dyn iovec if a a dyn blob is given
authorStefan Metzmacher <metze@samba.org>
Fri, 5 Jun 2009 17:46:27 +0000 (19:46 +0200)
committerStefan 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

index 75138a85a0a1b6c1cfdc37da4f9804cfaa79e589..be2f3b10e4a92bb5d58e27418b7d8554326c276b 100644 (file)
@@ -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;