summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-10-18 13:40:08 +0200
committerMichael Adam <obnox@samba.org>2012-10-19 12:15:02 +0200
commitf76436c6ea7867fb60d6ac6b65cffc502a018467 (patch)
tree4e8b5229526f5dfae3dae2dc60059b10ef514240
parent7be7ec803f88de68ef9a5e2b14994a13589ff441 (diff)
downloadsamba-f76436c6ea7867fb60d6ac6b65cffc502a018467.tar.gz
samba-f76436c6ea7867fb60d6ac6b65cffc502a018467.tar.bz2
samba-f76436c6ea7867fb60d6ac6b65cffc502a018467.zip
s3:smbd: fill tcon->global->session_global_id
metze Signed-off-by: Michael Adam <obnox@samba.org>
-rw-r--r--source3/smbd/service.c2
-rw-r--r--source3/smbd/smb2_tcon.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index b74192cec8..016b93f100 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -983,6 +983,8 @@ static connection_struct *make_connection_smb1(struct smbd_server_connection *sc
*pstatus = NT_STATUS_NO_MEMORY;
return NULL;
}
+ tcon->global->session_global_id =
+ vuser->session->global->session_global_id;
tcon->compat = talloc_move(tcon, &conn);
tcon->status = NT_STATUS_OK;
diff --git a/source3/smbd/smb2_tcon.c b/source3/smbd/smb2_tcon.c
index 1346d1309b..ca67461e8d 100644
--- a/source3/smbd/smb2_tcon.c
+++ b/source3/smbd/smb2_tcon.c
@@ -283,6 +283,8 @@ static NTSTATUS smbd_smb2_tree_connect(struct smbd_smb2_request *req,
TALLOC_FREE(tcon);
return NT_STATUS_NO_MEMORY;
}
+ tcon->global->session_global_id =
+ req->session->global->session_global_id;
tcon->compat = talloc_move(tcon, &compat_conn);