mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
smbd: smbd_do_setfilepathinfo(): pass data as pointer, not pointer-to-pointer
No change in behaviour. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15608 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
ddd8ca35b2
commit
a771506120
@ -145,7 +145,7 @@ NTSTATUS smbd_do_setfilepathinfo(connection_struct *conn,
|
|||||||
uint16_t info_level,
|
uint16_t info_level,
|
||||||
files_struct *fsp,
|
files_struct *fsp,
|
||||||
struct smb_filename *smb_fname,
|
struct smb_filename *smb_fname,
|
||||||
char **ppdata,
|
char *data,
|
||||||
int total_data,
|
int total_data,
|
||||||
int *ret_data_size);
|
int *ret_data_size);
|
||||||
|
|
||||||
|
@ -4596,7 +4596,7 @@ static void call_trans2setpathinfo(
|
|||||||
info_level,
|
info_level,
|
||||||
fsp,
|
fsp,
|
||||||
smb_fname,
|
smb_fname,
|
||||||
ppdata,
|
*ppdata,
|
||||||
total_data,
|
total_data,
|
||||||
&data_return_size);
|
&data_return_size);
|
||||||
|
|
||||||
@ -4772,7 +4772,7 @@ static void call_trans2setfileinfo(
|
|||||||
info_level,
|
info_level,
|
||||||
fsp,
|
fsp,
|
||||||
smb_fname,
|
smb_fname,
|
||||||
ppdata,
|
*ppdata,
|
||||||
total_data,
|
total_data,
|
||||||
&data_return_size);
|
&data_return_size);
|
||||||
|
|
||||||
|
@ -346,7 +346,7 @@ static void defer_rename_done(struct tevent_req *subreq)
|
|||||||
SMB2_FILE_RENAME_INFORMATION_INTERNAL,
|
SMB2_FILE_RENAME_INFORMATION_INTERNAL,
|
||||||
state->fsp,
|
state->fsp,
|
||||||
state->fsp->fsp_name,
|
state->fsp->fsp_name,
|
||||||
&state->data,
|
state->data,
|
||||||
state->data_size,
|
state->data_size,
|
||||||
&ret_size);
|
&ret_size);
|
||||||
|
|
||||||
@ -514,7 +514,7 @@ static struct tevent_req *smbd_smb2_setinfo_send(TALLOC_CTX *mem_ctx,
|
|||||||
file_info_level,
|
file_info_level,
|
||||||
fsp,
|
fsp,
|
||||||
fsp->fsp_name,
|
fsp->fsp_name,
|
||||||
&data,
|
data,
|
||||||
data_size,
|
data_size,
|
||||||
&ret_size);
|
&ret_size);
|
||||||
TALLOC_FREE(lck);
|
TALLOC_FREE(lck);
|
||||||
|
@ -5015,11 +5015,10 @@ NTSTATUS smbd_do_setfilepathinfo(connection_struct *conn,
|
|||||||
uint16_t info_level,
|
uint16_t info_level,
|
||||||
files_struct *fsp,
|
files_struct *fsp,
|
||||||
struct smb_filename *smb_fname,
|
struct smb_filename *smb_fname,
|
||||||
char **ppdata,
|
char *pdata,
|
||||||
int total_data,
|
int total_data,
|
||||||
int *ret_data_size)
|
int *ret_data_size)
|
||||||
{
|
{
|
||||||
char *pdata = *ppdata;
|
|
||||||
NTSTATUS status = NT_STATUS_OK;
|
NTSTATUS status = NT_STATUS_OK;
|
||||||
int data_return_size = 0;
|
int data_return_size = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user