diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-09-13 09:10:42 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-10-17 16:00:36 +0200 |
commit | a2b38e0bc94d329963cdad76e6861d3234ede8d4 (patch) | |
tree | f64e4825f47311dc7f44edf86fcaf09688bdd1b7 | |
parent | d9d5744bc3dd7e18ac6dc23917d903d5e991ab8d (diff) | |
download | samba-a2b38e0bc94d329963cdad76e6861d3234ede8d4.tar.gz samba-a2b38e0bc94d329963cdad76e6861d3234ede8d4.tar.bz2 samba-a2b38e0bc94d329963cdad76e6861d3234ede8d4.zip |
s3:libsmb: make use of smb1cli_tcon_set_values()
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10200
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r-- | source3/libsmb/cliconnect.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 7bf4187fe8..ad3570b7ae 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -2584,7 +2584,14 @@ static void cli_tcon_andx_done(struct tevent_req *subreq) smb1cli_session_protect_session_key(cli->smb1.session); } - cli_state_set_tid(cli, SVAL(inhdr, HDR_TID)); + smb1cli_tcon_set_values(state->cli->smb1.tcon, + SVAL(inhdr, HDR_TID), + optional_support, + 0, /* maximal_access */ + 0, /* guest_maximal_access */ + NULL, /* service */ + NULL); /* fs_type */ + tevent_req_done(req); } @@ -2718,7 +2725,15 @@ static void cli_tree_connect_raw_done(struct tevent_req *subreq) if (tevent_req_nterror(req, status)) { return; } - cli_state_set_tid(state->cli, tid); + + smb1cli_tcon_set_values(state->cli->smb1.tcon, + tid, + 0, /* optional_support */ + 0, /* maximal_access */ + 0, /* guest_maximal_access */ + NULL, /* service */ + NULL); /* fs_type */ + tevent_req_done(req); } |