s3:smb2_tcon: 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:22 +0000 (13:59 -0800)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_tcon.c

index c7dc928ca3f822d34926d6b6f7af2ef28ea3d27c..e1f0987c29e14c9b21a7050445d3024df3ae43dc 100644 (file)
@@ -135,7 +135,7 @@ static void smbd_smb2_request_tcon_done(struct tevent_req *subreq)
 
        outhdr = SMBD_SMB2_OUT_HDR_PTR(req);
 
-       outbody = data_blob_talloc(req->out.vector, NULL, 0x10);
+       outbody = smbd_smb2_generate_outbody(req, 0x10);
        if (outbody.data == NULL) {
                error = smbd_smb2_request_error(req, NT_STATUS_NO_MEMORY);
                if (!NT_STATUS_IS_OK(error)) {
@@ -438,7 +438,7 @@ NTSTATUS smbd_smb2_request_process_tdis(struct smbd_smb2_request *req)
 
        TALLOC_FREE(req->tcon);
 
-       outbody = data_blob_talloc(req->out.vector, NULL, 0x04);
+       outbody = smbd_smb2_generate_outbody(req, 0x04);
        if (outbody.data == NULL) {
                return smbd_smb2_request_error(req, NT_STATUS_NO_MEMORY);
        }