diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-03-16 15:01:27 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-06-25 20:55:06 +0200 |
commit | 02d206ee64d8b08d40204a948b696bf0b4156c5b (patch) | |
tree | 4946f2933116296de4ac0588c8053290d16ee367 /source3/smbd/process.c | |
parent | 1fffd35692c58349267079f770ced1eb33201553 (diff) | |
download | samba-02d206ee64d8b08d40204a948b696bf0b4156c5b.tar.gz |
s3:smb2_sesssetup: make use of the smbXsrv_session infrastructure
We still have smbd_smb2_session as primary structure,
but that will went away once we got rid of smbd_smb2_tcon.
metze
Diffstat (limited to 'source3/smbd/process.c')
-rw-r--r-- | source3/smbd/process.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 77c4804a38..e25fbc77c1 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -3157,9 +3157,18 @@ static void smbd_id_cache_kill(struct messaging_context *msg_ctx, NTSTATUS smbXsrv_connection_init_tables(struct smbXsrv_connection *conn, enum protocol_types protocol) { + NTSTATUS status; + set_Protocol(protocol); conn->protocol = protocol; + if (protocol >= PROTOCOL_SMB2_02) { + status = smb2srv_session_table_init(conn); + if (!NT_STATUS_IS_OK(status)) { + return status; + } + } + return NT_STATUS_OK; } |