diff --git a/source3/smbd/smb2_reply.c b/source3/smbd/smb2_reply.c index 90aa92193b9..8b2eca20cb1 100644 --- a/source3/smbd/smb2_reply.c +++ b/source3/smbd/smb2_reply.c @@ -572,7 +572,11 @@ bool check_fsp(connection_struct *conn, struct smb_request *req, bool check_fsp_ntquota_handle(connection_struct *conn, struct smb_request *req, files_struct *fsp) { - if (!check_fsp_open(conn, req, fsp)) { + if ((fsp == NULL) || (conn == NULL)) { + return false; + } + + if ((conn != fsp->conn) || (req->vuid != fsp->vuid)) { return false; }