s3:smb2_ioctl: make use of smbd_smb2_generate_outbody()
authorStefan Metzmacher <metze@samba.org>
Wed, 4 Dec 2013 13:59:07 +0000 (14:59 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 5 Mar 2014 21:59:21 +0000 (13:59 -0800)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_ioctl.c

index be2a798b64dd5970e87eeca4e19d6da043e9b21a..6a19fcb7689230eaa090e948e35625669adaf840 100644 (file)
@@ -318,7 +318,7 @@ static void smbd_smb2_request_ioctl_done(struct tevent_req *subreq)
        out_input_offset = SMB2_HDR_BODY + 0x30;
        out_output_offset = SMB2_HDR_BODY + 0x30;
 
-       outbody = data_blob_talloc(req->out.vector, NULL, 0x30);
+       outbody = smbd_smb2_generate_outbody(req, 0x30);
        if (outbody.data == NULL) {
                error = smbd_smb2_request_error(req, NT_STATUS_NO_MEMORY);
                if (!NT_STATUS_IS_OK(error)) {