mirror of
https://github.com/samba-team/samba.git
synced 2025-10-30 08:23:49 +03:00
r11744: make sure the session is completed authenticated!!!
metze
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
17c4b6298d
commit
0383218a00
@@ -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) {
|
||||
if ((flags & AS_USER) && (!req->session || !req->session->finished_sesssetup)) {
|
||||
/* amazingly, the error code depends on the command */
|
||||
switch (type) {
|
||||
case SMBntcreateX:
|
||||
|
||||
Reference in New Issue
Block a user