summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/uid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index f34ec5540a..ec6dbc56a3 100644
--- a/source3/smbd/uid.c
+++ b/source3/smbd/uid.c
@@ -227,8 +227,7 @@ void conn_clear_vuid_cache(connection_struct *conn, uint16_t vuid)
bool change_to_user(connection_struct *conn, uint16 vuid)
{
const struct auth_serversupplied_info *server_info = NULL;
- struct smbd_server_connection *sconn = smbd_server_conn;
- user_struct *vuser = get_valid_user_struct(sconn, vuid);
+ user_struct *vuser = get_valid_user_struct(conn->sconn, vuid);
int snum;
gid_t gid;
uid_t uid;