diff options
author | Volker Lendecke <vl@samba.org> | 2007-12-29 22:16:31 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2007-12-29 23:12:51 +0100 |
commit | a59280792cab616f5b269960ab68bc44ccc1fd38 (patch) | |
tree | a2770e3303c0ca9e788f05d83663acc0c27fcc65 /source3/lib/secace.c | |
parent | 99bd615a80e8f983d386e260e747db102ec38cf3 (diff) | |
download | samba-a59280792cab616f5b269960ab68bc44ccc1fd38.tar.gz samba-a59280792cab616f5b269960ab68bc44ccc1fd38.tar.bz2 samba-a59280792cab616f5b269960ab68bc44ccc1fd38.zip |
Remove tiny code duplication
sid_size did the same as ndr_size_dom_sid
(This used to be commit 8aec5d09ba023413bd8ecbdfbc7d23904df94389)
Diffstat (limited to 'source3/lib/secace.c')
-rw-r--r-- | source3/lib/secace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/secace.c b/source3/lib/secace.c index 90ecc342cd..8760a6109a 100644 --- a/source3/lib/secace.c +++ b/source3/lib/secace.c @@ -59,7 +59,7 @@ void init_sec_ace(SEC_ACE *t, const DOM_SID *sid, enum security_ace_type type, { t->type = type; t->flags = flag; - t->size = sid_size(sid) + 8; + t->size = ndr_size_dom_sid(sid, 0) + 8; t->access_mask = mask; ZERO_STRUCTP(&t->trustee); @@ -86,7 +86,7 @@ NTSTATUS sec_ace_add_sid(TALLOC_CTX *ctx, SEC_ACE **pp_new, SEC_ACE *old, unsign (*pp_new)[i].type = SEC_ACE_TYPE_ACCESS_ALLOWED; (*pp_new)[i].flags = 0; - (*pp_new)[i].size = SEC_ACE_HEADER_SIZE + sid_size(sid); + (*pp_new)[i].size = SEC_ACE_HEADER_SIZE + ndr_size_dom_sid(sid, 0); (*pp_new)[i].access_mask = mask; sid_copy(&(*pp_new)[i].trustee, sid); return NT_STATUS_OK; |