mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3:smb2_create: make use of smbd_smb2_generate_outbody()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
2ecd5c9693
commit
2c91f0506b
@ -318,7 +318,7 @@ static void smbd_smb2_request_create_done(struct tevent_req *tsubreq)
|
|||||||
out_context_buffer_offset = SMB2_HDR_BODY + 0x58;
|
out_context_buffer_offset = SMB2_HDR_BODY + 0x58;
|
||||||
}
|
}
|
||||||
|
|
||||||
outbody = data_blob_talloc(smb2req->out.vector, NULL, 0x58);
|
outbody = smbd_smb2_generate_outbody(smb2req, 0x58);
|
||||||
if (outbody.data == NULL) {
|
if (outbody.data == NULL) {
|
||||||
error = smbd_smb2_request_error(smb2req, NT_STATUS_NO_MEMORY);
|
error = smbd_smb2_request_error(smb2req, NT_STATUS_NO_MEMORY);
|
||||||
if (!NT_STATUS_IS_OK(error)) {
|
if (!NT_STATUS_IS_OK(error)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user