summaryrefslogtreecommitdiff
path: root/source4/smb_server/session.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-11-18 08:44:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:25 -0500
commit799724aae7f431ef721b15745a89f01b12b10d9c (patch)
tree11545355e8affa62c89aa00a94065d9eb0d24505 /source4/smb_server/session.c
parentd931455e6e627511935fc82d2c6bc4e23743ebc3 (diff)
downloadsamba-799724aae7f431ef721b15745a89f01b12b10d9c.tar.gz
samba-799724aae7f431ef721b15745a89f01b12b10d9c.tar.bz2
samba-799724aae7f431ef721b15745a89f01b12b10d9c.zip
r11774: - move SMB specific initialisation of the smbsrv_connection out of smb_server.c
- add a generic incoming packet handler, which handles the first incoming packet and passes to the protocol specifc packet handler metze (This used to be commit f89deac1cb8a7e5651116d96b9a94d5cc8293076)
Diffstat (limited to 'source4/smb_server/session.c')
-rw-r--r--source4/smb_server/session.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/smb_server/session.c b/source4/smb_server/session.c
index 50bea16ee2..ba141f96ec 100644
--- a/source4/smb_server/session.c
+++ b/source4/smb_server/session.c
@@ -25,14 +25,15 @@
/****************************************************************************
-init the tcon structures
+init the session structures
****************************************************************************/
-void smbsrv_vuid_init(struct smbsrv_connection *smb_conn)
+NTSTATUS smbsrv_init_sessions(struct smbsrv_connection *smb_conn)
{
smb_conn->sessions.idtree_vuid = idr_init(smb_conn);
+ NT_STATUS_HAVE_NO_MEMORY(smb_conn->sessions.idtree_vuid);
+ return NT_STATUS_OK;
}
-
/****************************************************************************
Find the session structure assoicated with a VUID (not one from an in-progress session setup)
****************************************************************************/