diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-26 09:32:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:04:47 -0500 |
commit | 79c9d6db55a72d630caa296691ea5ad54b30fc4c (patch) | |
tree | 34bdf15ca9b994e94af15fc469b918cb6b18b4fe /source4/smb_server | |
parent | f9fdeaa8f47585870b13f7dbe65b697ee8c7e9bb (diff) | |
download | samba-79c9d6db55a72d630caa296691ea5ad54b30fc4c.tar.gz samba-79c9d6db55a72d630caa296691ea5ad54b30fc4c.tar.bz2 samba-79c9d6db55a72d630caa296691ea5ad54b30fc4c.zip |
r3256: get rid of the unused session_claim() and session_yield() calls
(This used to be commit f1c5be396b62203fb183431ea6218eed38976d0b)
Diffstat (limited to 'source4/smb_server')
-rw-r--r-- | source4/smb_server/config.mk | 1 | ||||
-rw-r--r-- | source4/smb_server/password.c | 11 | ||||
-rw-r--r-- | source4/smb_server/session.c | 13 |
3 files changed, 0 insertions, 25 deletions
diff --git a/source4/smb_server/config.mk b/source4/smb_server/config.mk index 4059df1726..2521e8299e 100644 --- a/source4/smb_server/config.mk +++ b/source4/smb_server/config.mk @@ -14,7 +14,6 @@ ADD_OBJ_FILES = \ smb_server/request.o \ smb_server/search.o \ smb_server/service.o \ - smb_server/session.o \ smb_server/sesssetup.o \ smb_server/srvtime.o \ smb_server/trans2.o \ diff --git a/source4/smb_server/password.c b/source4/smb_server/password.c index d553d8612d..3995267377 100644 --- a/source4/smb_server/password.c +++ b/source4/smb_server/password.c @@ -56,8 +56,6 @@ void smbsrv_invalidate_vuid(struct smbsrv_connection *smb_conn, uint16_t vuid) if (sess == NULL) return; - session_yield(sess); - DLIST_REMOVE(smb_conn->sessions.session_list, sess); /* clear the vuid from the 'cache' on each connection, and @@ -144,14 +142,5 @@ uint16_t smbsrv_register_session(struct smbsrv_connection *smb_conn, sess->smb_conn = smb_conn; DLIST_ADD(smb_conn->sessions.session_list, sess); - /* we only need to do session_claim() when the session_setup is complete - * for spnego session_info is NULL the first time - */ - if (session_info && !session_claim(sess)) { - DEBUG(1,("Failed to claim session for vuid=%d\n", sess->vuid)); - smbsrv_invalidate_vuid(smb_conn, sess->vuid); - return UID_FIELD_INVALID; - } - return sess->vuid; } diff --git a/source4/smb_server/session.c b/source4/smb_server/session.c index 1567484a49..876702aa1c 100644 --- a/source4/smb_server/session.c +++ b/source4/smb_server/session.c @@ -27,16 +27,3 @@ #include "includes.h" -/* called when a session is created */ -BOOL session_claim(struct smbsrv_session *sess) -{ - DEBUG(0,("rewrite: Not doing session claim\n")); - return True; -} - -/* called when a session is destroyed */ -void session_yield(struct smbsrv_session *sess) -{ - DEBUG(0,("rewrite: Not doing session yield\n")); -} - |