summaryrefslogtreecommitdiff
path: root/source3/lib/secdesc.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2007-12-29 22:16:31 +0100
committerVolker Lendecke <vl@samba.org>2007-12-29 23:12:51 +0100
commita59280792cab616f5b269960ab68bc44ccc1fd38 (patch)
treea2770e3303c0ca9e788f05d83663acc0c27fcc65 /source3/lib/secdesc.c
parent99bd615a80e8f983d386e260e747db102ec38cf3 (diff)
downloadsamba-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/secdesc.c')
-rw-r--r--source3/lib/secdesc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/secdesc.c b/source3/lib/secdesc.c
index 123c3bcc9b..883fac57e4 100644
--- a/source3/lib/secdesc.c
+++ b/source3/lib/secdesc.c
@@ -46,10 +46,10 @@ size_t sec_desc_size(SEC_DESC *psd)
/* don't align */
if (psd->owner_sid != NULL)
- offset += sid_size(psd->owner_sid);
+ offset += ndr_size_dom_sid(psd->owner_sid, 0);
if (psd->group_sid != NULL)
- offset += sid_size(psd->group_sid);
+ offset += ndr_size_dom_sid(psd->group_sid, 0);
if (psd->sacl != NULL)
offset += psd->sacl->size;
@@ -235,11 +235,11 @@ SEC_DESC *make_sec_desc(TALLOC_CTX *ctx,
}
if (dst->owner_sid != NULL) {
- offset += sid_size(dst->owner_sid);
+ offset += ndr_size_dom_sid(dst->owner_sid, 0);
}
if (dst->group_sid != NULL) {
- offset += sid_size(dst->group_sid);
+ offset += ndr_size_dom_sid(dst->group_sid, 0);
}
*sd_size = (size_t)offset;