s3:libsmb: make use of smb1cli_tcon_set_values()
authorStefan Metzmacher <metze@samba.org>
Fri, 13 Sep 2013 07:10:42 +0000 (09:10 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 17 Oct 2013 14:00:36 +0000 (16:00 +0200)
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>
source3/libsmb/cliconnect.c

index 7bf4187fe8871779923b5c85cb0b48c5ffb77cea..ad3570b7ae6c1c08ce87a8355f1dc6ab2288234d 100644 (file)
@@ -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);
 }