diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-11-16 18:40:37 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:46:21 -0500 |
commit | 27b9d5652ed212fc46ade4339ee167152bd870b3 (patch) | |
tree | ce7132c135eed63e8f4206283ac170bed414d7cc | |
parent | 5c35b41b871d254de114890ed141786bcd454d72 (diff) | |
download | samba-27b9d5652ed212fc46ade4339ee167152bd870b3.tar.gz samba-27b9d5652ed212fc46ade4339ee167152bd870b3.tar.bz2 samba-27b9d5652ed212fc46ade4339ee167152bd870b3.zip |
r11746: revert my last commits, I now understand how we decide between
finished and non-finished sessions
metze
(This used to be commit 7cf6b307bc820b87663e4b9d1aeb5e730729b24e)
-rw-r--r-- | source4/smb_server/reply.c | 2 | ||||
-rw-r--r-- | source4/smb_server/service.c | 2 | ||||
-rw-r--r-- | source4/smb_server/smb_server.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/source4/smb_server/reply.c b/source4/smb_server/reply.c index 75c5772bf7..4526d6f7f3 100644 --- a/source4/smb_server/reply.c +++ b/source4/smb_server/reply.c @@ -2174,7 +2174,7 @@ void reply_ulogoffX(struct smbsrv_request *req) struct smbsrv_tcon *tcon; NTSTATUS status; - if (!req->session || !req->session->finished_sesssetup) { + if (!req->session) { req_reply_error(req, NT_STATUS_DOS(ERRSRV, ERRbaduid)); return; } diff --git a/source4/smb_server/service.c b/source4/smb_server/service.c index 24d8a5250e..213cf6726b 100644 --- a/source4/smb_server/service.c +++ b/source4/smb_server/service.c @@ -156,7 +156,7 @@ NTSTATUS tcon_backend(struct smbsrv_request *req, union smb_tcon *con) NTSTATUS status; /* can only do bare tcon in share level security */ - if ((!req->session || !req->session->finished_sesssetup) && lp_security() != SEC_SHARE) { + if (!req->session && lp_security() != SEC_SHARE) { return NT_STATUS_ACCESS_DENIED; } diff --git a/source4/smb_server/smb_server.c b/source4/smb_server/smb_server.c index 7e1e8a8f4e..340674b8df 100644 --- a/source4/smb_server/smb_server.c +++ b/source4/smb_server/smb_server.c @@ -504,7 +504,7 @@ static void switch_message(int type, struct smbsrv_request *req) } /* see if the vuid is valid */ - if ((flags & AS_USER) && (!req->session || !req->session->finished_sesssetup)) { + if ((flags & AS_USER) && !req->session) { /* amazingly, the error code depends on the command */ switch (type) { case SMBntcreateX: |