summaryrefslogtreecommitdiff
path: root/source4/smb_server/password.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-26 09:32:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:04:47 -0500
commit79c9d6db55a72d630caa296691ea5ad54b30fc4c (patch)
tree34bdf15ca9b994e94af15fc469b918cb6b18b4fe /source4/smb_server/password.c
parentf9fdeaa8f47585870b13f7dbe65b697ee8c7e9bb (diff)
downloadsamba-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/password.c')
-rw-r--r--source4/smb_server/password.c11
1 files changed, 0 insertions, 11 deletions
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;
}