mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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 commit is contained in:
parent
0bba8da460
commit
0cbd11a0f2
@ -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 \
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user