diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-08-14 15:18:47 -0700 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-08-15 10:53:21 +0200 |
commit | b706ca6e55aa76d4da901c69d991969602facc3b (patch) | |
tree | 393b7ffee4764f4f0b67258251ab659118c19870 | |
parent | 1d7bdfc4feac35d92b003c3c78f502897ecc5d4e (diff) | |
download | samba-b706ca6e55aa76d4da901c69d991969602facc3b.tar.gz samba-b706ca6e55aa76d4da901c69d991969602facc3b.tar.bz2 samba-b706ca6e55aa76d4da901c69d991969602facc3b.zip |
s3:libsmb: call smb2cli_logoff() from cli_ulogoff()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Aug 15 10:53:21 CEST 2013 on sn-devel-104
-rw-r--r-- | source3/libsmb/cliconnect.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index b91c3ebe43..7bf4187fe8 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -2294,6 +2294,18 @@ NTSTATUS cli_ulogoff(struct cli_state *cli) struct tevent_req *req; NTSTATUS status = NT_STATUS_NO_MEMORY; + if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) { + status = smb2cli_logoff(cli->conn, + cli->timeout, + cli->smb2.session); + if (!NT_STATUS_IS_OK(status)) { + return status; + } + smb2cli_session_set_id_and_flags(cli->smb2.session, + UINT64_MAX, 0); + return NT_STATUS_OK; + } + if (smbXcli_conn_has_async_calls(cli->conn)) { return NT_STATUS_INVALID_PARAMETER; } |