Skip to content

Commit

Permalink
s3: libsmb: Plumb new SMB2 shadow copy call into cli_shadow_copy_data().
Browse files Browse the repository at this point in the history
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12166

Signed-off-by: Jeremy Allison <[email protected]>
Reviewed-by: Uri Simchoni <[email protected]>
  • Loading branch information
jrasamba committed Aug 22, 2016
1 parent 0c6329b commit 03bf1f8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion source3/libsmb/clifile.c
Original file line number Diff line number Diff line change
Expand Up @@ -6116,11 +6116,22 @@ NTSTATUS cli_shadow_copy_data(TALLOC_CTX *mem_ctx, struct cli_state *cli,
uint16_t fnum, bool get_names,
char ***pnames, int *pnum_names)
{
TALLOC_CTX *frame = talloc_stackframe();
TALLOC_CTX *frame = NULL;
struct tevent_context *ev;
struct tevent_req *req;
NTSTATUS status = NT_STATUS_NO_MEMORY;

if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) {
return cli_smb2_shadow_copy_data(mem_ctx,
cli,
fnum,
get_names,
pnames,
pnum_names);
}

frame = talloc_stackframe();

if (smbXcli_conn_has_async_calls(cli->conn)) {
/*
* Can't use sync call while an async call is in flight
Expand Down

0 comments on commit 03bf1f8

Please sign in to comment.