From: Ralph Boehme Date: Thu, 2 Jan 2020 16:16:38 +0000 (+0100) Subject: smbd: don't use vuser in make_connection() X-Git-Tag: ldb-2.1.0~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d797a839d4f96da649ff13bf8c6c7ea4b52ae44;p=thirdparty%2Fsamba.git smbd: don't use vuser in make_connection() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/service.c b/source3/smbd/service.c index 94e0eb49569..1abc23ad422 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -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;