Skip to content

Commit

Permalink
libsmb: Enable "cli_notify" for SMB2+
Browse files Browse the repository at this point in the history
Signed-off-by: Volker Lendecke <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>

Autobuild-User(master): Jeremy Allison <[email protected]>
Autobuild-Date(master): Wed Jul 26 01:33:25 CEST 2017 on sn-devel-144
  • Loading branch information
vlendec authored and jrasamba committed Jul 25, 2017
1 parent 1801134 commit 5005a3a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion source3/libsmb/clifile.c
Original file line number Diff line number Diff line change
Expand Up @@ -5602,11 +5602,19 @@ NTSTATUS cli_notify(struct cli_state *cli, uint16_t fnum, uint32_t buffer_size,
TALLOC_CTX *mem_ctx, uint32_t *pnum_changes,
struct notify_change **pchanges)
{
TALLOC_CTX *frame = talloc_stackframe();
TALLOC_CTX *frame;
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_notify(cli, fnum, buffer_size,
completion_filter, recursive,
mem_ctx, pchanges, pnum_changes);
}

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 5005a3a

Please sign in to comment.