s3:smb2_lock: 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_lock.c

index 671cd6f06653f42d1bae7d23574a32dcddc68b58..4af3d616cea393e39f1e72ada3b098b7365ed15a 100644 (file)
@@ -146,7 +146,7 @@ static void smbd_smb2_request_lock_done(struct tevent_req *subreq)
                return;
        }
 
-       outbody = data_blob_talloc(smb2req->out.vector, NULL, 0x04);
+       outbody = smbd_smb2_generate_outbody(smb2req, 0x04);
        if (outbody.data == NULL) {
                error = smbd_smb2_request_error(smb2req, NT_STATUS_NO_MEMORY);
                if (!NT_STATUS_IS_OK(error)) {