From a2b38e0bc94d329963cdad76e6861d3234ede8d4 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 13 Sep 2013 09:10:42 +0200 Subject: s3:libsmb: make use of smb1cli_tcon_set_values() Bug: https://bugzilla.samba.org/show_bug.cgi?id=10200 Signed-off-by: Stefan Metzmacher Reviewed-by: Michael Adam --- source3/libsmb/cliconnect.c | 19 +++++++++++++++++-- 1 file 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); } -- cgit