mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
s3/posix_acls: replace dup_sec_desc() usage
Use security_descriptor_copy() instead, which is also provided by libcli. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
40bca3bdd5
commit
0c5911fc78
@ -3670,12 +3670,12 @@ NTSTATUS set_nt_acl(files_struct *fsp, uint32 security_info_sent, const struct s
|
||||
return NT_STATUS_MEDIA_WRITE_PROTECTED;
|
||||
}
|
||||
|
||||
if (!psd_orig) {
|
||||
if (psd_orig == NULL) {
|
||||
return NT_STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
psd = dup_sec_desc(talloc_tos(), psd_orig);
|
||||
if (!psd) {
|
||||
psd = security_descriptor_copy(talloc_tos(), psd_orig);
|
||||
if (psd == NULL) {
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user