1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

smbd: don't use vuser in make_connection()

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2020-01-02 17:16:38 +01:00 committed by Jeremy Allison
parent 758c42ec5d
commit 1d797a839d

View File

@ -1033,7 +1033,6 @@ connection_struct *make_connection(struct smb_request *req,
const struct loadparm_substitution *lp_sub =
loadparm_s3_global_substitution();
uid_t euid;
struct user_struct *vuser = NULL;
char *service = NULL;
fstring dev;
int snum = -1;
@ -1053,8 +1052,7 @@ connection_struct *make_connection(struct smb_request *req,
return NULL;
}
vuser = get_valid_user_struct(sconn, vuid);
if (!vuser) {
if (session == NULL) {
DEBUG(1,("make_connection: refusing to connect with "
"no session setup\n"));
*status = NT_STATUS_ACCESS_DENIED;