summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/smb2/connect.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/libcli/smb2/connect.c b/source4/libcli/smb2/connect.c
index f1cf108723..d9d430ddd5 100644
--- a/source4/libcli/smb2/connect.c
+++ b/source4/libcli/smb2/connect.c
@@ -35,6 +35,7 @@
struct smb2_connect_state {
struct tevent_context *ev;
struct cli_credentials *credentials;
+ uint64_t previous_session_id;
struct resolve_context *resolve_ctx;
const char *host;
const char *share;
@@ -62,6 +63,7 @@ struct tevent_req *smb2_connect_send(TALLOC_CTX *mem_ctx,
const char *share,
struct resolve_context *resolve_ctx,
struct cli_credentials *credentials,
+ uint64_t previous_session_id,
struct smbcli_options *options,
const char *socket_options,
struct gensec_settings *gensec_settings)
@@ -79,6 +81,7 @@ struct tevent_req *smb2_connect_send(TALLOC_CTX *mem_ctx,
state->ev = ev;
state->credentials = credentials;
+ state->previous_session_id = previous_session_id;
state->options = *options;
state->host = host;
state->ports = ports;
@@ -177,7 +180,7 @@ static void smb2_connect_negprot_done(struct tevent_req *subreq)
subreq = smb2_session_setup_spnego_send(state, state->ev,
state->session,
state->credentials,
- 0 /* previous_session_id */);
+ state->previous_session_id);
if (tevent_req_nomem(subreq, req)) {
return;
}
@@ -294,6 +297,7 @@ NTSTATUS smb2_connect(TALLOC_CTX *mem_ctx,
share,
resolve_ctx,
credentials,
+ 0, /* previous_session_id */
options,
socket_options,
gensec_settings);