diff options
Diffstat (limited to 'source4/smb_server')
-rw-r--r-- | source4/smb_server/config.mk | 2 | ||||
-rw-r--r-- | source4/smb_server/session.c (renamed from source4/smb_server/password.c) | 3 | ||||
-rw-r--r-- | source4/smb_server/smb_server.h | 5 |
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; |