diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libcli/smb2/connect.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/libcli/smb2/connect.c b/source4/libcli/smb2/connect.c index b28013fc94..a6a5690bf1 100644 --- a/source4/libcli/smb2/connect.c +++ b/source4/libcli/smb2/connect.c @@ -202,11 +202,6 @@ static void smb2_connect_session_done(struct tevent_req *subreq) return; } - state->tree = smb2_tree_init(state->session, state, true); - if (tevent_req_nomem(state->tree, req)) { - return; - } - state->tcon.in.reserved = 0; state->tcon.in.path = talloc_asprintf(state, "\\\\%s\\%s", state->host, state->share); @@ -237,6 +232,11 @@ static void smb2_connect_tcon_done(struct smb2_request *smb2req) return; } + state->tree = smb2_tree_init(state->session, state, true); + if (tevent_req_nomem(state->tree, req)) { + return; + } + state->tree->tid = state->tcon.out.tid; tevent_req_done(req); |