summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-04-12 05:36:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:11:30 -0500
commitf3e3f3aab6a2a117966893ef3264443bdb20f186 (patch)
tree670f0cfa674faea65569c9fc0f10ffb7b2b7b429
parentb1dba5e7fbe50ffe9504ddc9fb2125a3d5cb237b (diff)
downloadsamba-f3e3f3aab6a2a117966893ef3264443bdb20f186.tar.gz
samba-f3e3f3aab6a2a117966893ef3264443bdb20f186.tar.bz2
samba-f3e3f3aab6a2a117966893ef3264443bdb20f186.zip
r6310: Rename password.c to session.c, and remove the linked list of all
outstanding sessions, as we don't use it. Andrew Bartlett (This used to be commit 0cbd11a0f2448f2021fa1d8ad85a0a6f52192ee8)
-rw-r--r--source4/smb_server/config.mk2
-rw-r--r--source4/smb_server/session.c (renamed from source4/smb_server/password.c)3
-rw-r--r--source4/smb_server/smb_server.h5
3 files changed, 3 insertions, 7 deletions
diff --git a/source4/smb_server/config.mk b/source4/smb_server/config.mk
index 2521e8299e..70d2ea0926 100644
--- a/source4/smb_server/config.mk
+++ b/source4/smb_server/config.mk
@@ -9,7 +9,7 @@ ADD_OBJ_FILES = \
smb_server/conn.o \
smb_server/negprot.o \
smb_server/nttrans.o \
- smb_server/password.o \
+ smb_server/session.o \
smb_server/reply.o \
smb_server/request.o \
smb_server/search.o \
diff --git a/source4/smb_server/password.c b/source4/smb_server/session.c
index 1132a8ed9a..5de30f423a 100644
--- a/source4/smb_server/password.c
+++ b/source4/smb_server/session.c
@@ -65,8 +65,6 @@ static int smbsrv_session_destructor(void *p)
struct smbsrv_session *sess = p;
struct smbsrv_connection *smb_conn = sess->smb_conn;
- DLIST_REMOVE(smb_conn->sessions.session_list, sess);
-
/* clear the vuid from the 'cache' on each connection, and
from the vuid 'owner' of connections */
/* REWRITE: conn_clear_vuid_cache(smb, vuid); */
@@ -134,7 +132,6 @@ struct smbsrv_session *smbsrv_register_session(struct smbsrv_connection *smb_con
sess->gensec_ctx = talloc_reference(sess, gensec_ctx);
sess->smb_conn = smb_conn;
- DLIST_ADD(smb_conn->sessions.session_list, sess);
talloc_set_destructor(sess, smbsrv_session_destructor);
diff --git a/source4/smb_server/smb_server.h b/source4/smb_server/smb_server.h
index 2f176d9c66..01222adc0c 100644
--- a/source4/smb_server/smb_server.h
+++ b/source4/smb_server/smb_server.h
@@ -218,12 +218,11 @@ struct smbsrv_connection {
/* context associated with currently valid session setups */
struct {
- /* this holds info on session vuids that are already validated for this VC */
- struct smbsrv_session *session_list;
-
int num_validated_vuids;
/* an id tree used to allocate vuids */
+ /* this holds info on session vuids that are already
+ * validated for this VC */
struct idr_context *idtree_vuid;
} sessions;