diff options
author | Volker Lendecke <vl@samba.org> | 2017-07-25 12:30:47 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-07-26 01:33:25 +0200 |
commit | 5005a3a6961d40fe349f76db67c980be7dc9f3ea (patch) | |
tree | c32ac727040ca08746118bca0289879a2d2baed9 /source3 | |
parent | 18011343d80a28fb46894d712b22c84dce067342 (diff) | |
download | samba-5005a3a6961d40fe349f76db67c980be7dc9f3ea.tar.gz |
libsmb: Enable "cli_notify" for SMB2+
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Jul 26 01:33:25 CEST 2017 on sn-devel-144
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/clifile.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index 1455fbdbdfd..828448f2d5a 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -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 |