diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-08-14 11:44:58 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-08-15 09:07:07 +0200 |
commit | e6be68fb5e4dc528f7365f3413b9b66090992f42 (patch) | |
tree | e1d5efd87f92ae6b04e32e2ac4ddbeee7801bfc8 /source3 | |
parent | d732e9aab3bbad3ea97f8b120e57b41152aaee3b (diff) | |
download | samba-e6be68fb5e4dc528f7365f3413b9b66090992f42.tar.gz samba-e6be68fb5e4dc528f7365f3413b9b66090992f42.tar.bz2 samba-e6be68fb5e4dc528f7365f3413b9b66090992f42.zip |
s3:libsmb: call smb2cli_tdis() from cli_tdis()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/cliconnect.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index a8769e5e71..26317d8031 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -2802,6 +2802,10 @@ NTSTATUS cli_tdis(struct cli_state *cli) struct tevent_req *req; NTSTATUS status = NT_STATUS_NO_MEMORY; + if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) { + return smb2cli_tdis(cli); + } + if (smbXcli_conn_has_async_calls(cli->conn)) { return NT_STATUS_INVALID_PARAMETER; } |