mirror of
https://github.com/samba-team/samba.git
synced 2025-12-07 20:23:50 +03:00
Remove tiny code duplication
ndr_size_security_descriptor does the same as sec_desc_size
This commit is contained in:
@@ -144,7 +144,7 @@ SEC_DESC *get_share_security( TALLOC_CTX *ctx, const char *servicename,
|
||||
}
|
||||
|
||||
if (psd)
|
||||
*psize = sec_desc_size(psd);
|
||||
*psize = ndr_size_security_descriptor(psd, 0);
|
||||
|
||||
return psd;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user