mirror of
https://github.com/samba-team/samba.git
synced 2025-08-29 13:49:30 +03:00
smbd: TALLOC_FREE(sd) where it was allocated
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
committed by
Martin Schwenke
parent
ae7e1cb053
commit
32c492e851
@ -198,8 +198,6 @@ static NTSTATUS smbd_check_access_rights_sd(
|
||||
}
|
||||
}
|
||||
|
||||
TALLOC_FREE(sd);
|
||||
|
||||
if (NT_STATUS_IS_OK(status) ||
|
||||
!NT_STATUS_EQUAL(status, NT_STATUS_ACCESS_DENIED))
|
||||
{
|
||||
@ -327,13 +325,15 @@ NTSTATUS smbd_check_access_rights_fsp(struct files_struct *dirfsp,
|
||||
return status;
|
||||
}
|
||||
|
||||
return smbd_check_access_rights_sd(fsp->conn,
|
||||
dirfsp,
|
||||
fsp->fsp_name,
|
||||
sd,
|
||||
use_privs,
|
||||
access_mask,
|
||||
do_not_check_mask);
|
||||
status = smbd_check_access_rights_sd(fsp->conn,
|
||||
dirfsp,
|
||||
fsp->fsp_name,
|
||||
sd,
|
||||
use_privs,
|
||||
access_mask,
|
||||
do_not_check_mask);
|
||||
TALLOC_FREE(sd);
|
||||
return status;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user