NTSTATUS _samr_OpenDomain(struct pipes_struct *p,
struct samr_OpenDomain *r)
{
- struct samr_connect_info *cinfo;
struct samr_domain_info *dinfo;
struct security_descriptor *psd = NULL;
uint32 acc_granted;
/* find the connection policy handle. */
- cinfo = policy_handle_find(p, r->in.connect_handle, 0, NULL,
+ (void)policy_handle_find(p, r->in.connect_handle, 0, NULL,
struct samr_connect_info, &status);
if (!NT_STATUS_IS_OK(status)) {
return status;
NTSTATUS _samr_QuerySecurity(struct pipes_struct *p,
struct samr_QuerySecurity *r)
{
- struct samr_connect_info *cinfo;
struct samr_domain_info *dinfo;
struct samr_user_info *uinfo;
struct samr_group_info *ginfo;
struct security_descriptor * psd = NULL;
size_t sd_size = 0;
- cinfo = policy_handle_find(p, r->in.handle,
+ (void)policy_handle_find(p, r->in.handle,
SEC_STD_READ_CONTROL, NULL,
struct samr_connect_info, &status);
if (NT_STATUS_IS_OK(status)) {
NTSTATUS _samr_Connect(struct pipes_struct *p,
struct samr_Connect *r)
{
- struct samr_connect_info *info;
uint32_t acc_granted;
struct policy_handle hnd;
uint32 des_access = r->in.access_mask;
/* set up the SAMR connect_anon response */
- info = policy_handle_create(p, &hnd, acc_granted,
+ (void)policy_handle_create(p, &hnd, acc_granted,
struct samr_connect_info,
&status);
if (!NT_STATUS_IS_OK(status)) {
NTSTATUS _samr_Connect2(struct pipes_struct *p,
struct samr_Connect2 *r)
{
- struct samr_connect_info *info = NULL;
struct policy_handle hnd;
struct security_descriptor *psd = NULL;
uint32 acc_granted;
if ( !NT_STATUS_IS_OK(nt_status) )
return nt_status;
- info = policy_handle_create(p, &hnd, acc_granted,
+ (void)policy_handle_create(p, &hnd, acc_granted,
struct samr_connect_info, &nt_status);
if (!NT_STATUS_IS_OK(nt_status)) {
return nt_status;
struct samr_LookupDomain *r)
{
NTSTATUS status;
- struct samr_connect_info *info;
const char *domain_name;
struct dom_sid *sid = NULL;
/* win9x user manager likes to use SAMR_ACCESS_ENUM_DOMAINS here.
Reverted that change so we will work with RAS servers again */
- info = policy_handle_find(p, r->in.connect_handle,
+ (void)policy_handle_find(p, r->in.connect_handle,
SAMR_ACCESS_LOOKUP_DOMAIN, NULL,
struct samr_connect_info,
&status);
struct samr_EnumDomains *r)
{
NTSTATUS status;
- struct samr_connect_info *info;
uint32_t num_entries = 2;
struct samr_SamEntry *entry_array = NULL;
struct samr_SamArray *sam;
- info = policy_handle_find(p, r->in.connect_handle,
+ (void)policy_handle_find(p, r->in.connect_handle,
SAMR_ACCESS_ENUM_DOMAINS, NULL,
struct samr_connect_info, &status);
if (!NT_STATUS_IS_OK(status)) {
NTSTATUS _samr_SetDomainInfo(struct pipes_struct *p,
struct samr_SetDomainInfo *r)
{
- struct samr_domain_info *dinfo;
NTSTATUS status;
uint32_t acc_required = 0;
return NT_STATUS_INVALID_INFO_CLASS;
}
- dinfo = policy_handle_find(p, r->in.domain_handle,
+ (void)policy_handle_find(p, r->in.domain_handle,
acc_required, NULL,
struct samr_domain_info, &status);
if (!NT_STATUS_IS_OK(status)) {