summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 17bcab12fd..c02bbc8719 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -295,7 +295,7 @@ BOOL check_fsp(connection_struct *conn, struct smb_request *req,
reply_nterror(req, NT_STATUS_INVALID_HANDLE);
return False;
}
- if (((conn) != (fsp)->conn) || current_user.vuid != (fsp)->vuid) {
+ if (((conn) != (fsp)->conn) || user->vuid != (fsp)->vuid) {
reply_nterror(req, NT_STATUS_INVALID_HANDLE);
return False;
}