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

index 945faa155e969344ca8a0b963aaa7b7a0a2974c1..6446b79ff890de0d1dbe07b203c839aae205baf0 100644 (file)
@@ -106,7 +106,7 @@ static void smbd_smb2_request_oplock_break_done(struct tevent_req *subreq)
        in_file_id_persistent   = BVAL(inbody, 0x08);
        in_file_id_volatile     = BVAL(inbody, 0x10);
 
-       outbody = data_blob_talloc(req->out.vector, NULL, 0x18);
+       outbody = smbd_smb2_generate_outbody(req, 0x18);
        if (outbody.data == NULL) {
                error = smbd_smb2_request_error(req, NT_STATUS_NO_MEMORY);
                if (!NT_STATUS_IS_OK(error)) {