mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
r11746: revert my last commits, I now understand how we decide between
finished and non-finished sessions metze (This used to be commit 7cf6b307bc820b87663e4b9d1aeb5e730729b24e)
This commit is contained in:
parent
5c35b41b87
commit
27b9d5652e
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user