mirror of
https://github.com/samba-team/samba.git
synced 2025-11-27 08:23:49 +03:00
Remove tiny code duplication
ndr_size_security_descriptor does the same as sec_desc_size
This commit is contained in:
@@ -426,7 +426,7 @@ bool sec_io_desc_buf(const char *desc, SEC_DESC_BUF **ppsdb, prs_struct *ps, int
|
||||
if(!prs_uint32 ("ptr ", ps, depth, &ptr))
|
||||
return False;
|
||||
|
||||
len = sec_desc_size(psdb->sd);
|
||||
len = ndr_size_security_descriptor(psdb->sd, 0);
|
||||
if(!prs_uint32_pre("len ", ps, depth, &len, &off_len))
|
||||
return False;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user