summaryrefslogtreecommitdiff
path: root/source3/rpc_parse/parse_sec.c
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2002-04-29 21:34:02 +0000
committerJean-François Micouleau <jfm@samba.org>2002-04-29 21:34:02 +0000
commit07bb869958111edff7a71b262b45f75f590e32e4 (patch)
treeefe7cf19f482f4f492f6de299885168c27b7fd63 /source3/rpc_parse/parse_sec.c
parente62aa7555b06155200e41b3b358adcf43d3006f2 (diff)
downloadsamba-07bb869958111edff7a71b262b45f75f590e32e4.tar.gz
samba-07bb869958111edff7a71b262b45f75f590e32e4.tar.bz2
samba-07bb869958111edff7a71b262b45f75f590e32e4.zip
don't set the owner and group sid offset is there are no owner or group
owner. J.F. (This used to be commit 68e9211f5df0480cb88d7d21140c4954da47e7ae)
Diffstat (limited to 'source3/rpc_parse/parse_sec.c')
-rw-r--r--source3/rpc_parse/parse_sec.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/rpc_parse/parse_sec.c b/source3/rpc_parse/parse_sec.c
index 4f093b2422..c501f90479 100644
--- a/source3/rpc_parse/parse_sec.c
+++ b/source3/rpc_parse/parse_sec.c
@@ -674,12 +674,13 @@ SEC_DESC *make_sec_desc(TALLOC_CTX *ctx, uint16 revision,
*sd_size = (size_t)((offset == 0) ? SEC_DESC_HEADER_SIZE : offset);
- dst->off_owner_sid = offset_sid;
-
- if (dst->owner_sid != NULL)
+ if (dst->owner_sid != NULL) {
+ dst->off_owner_sid = offset_sid;
dst->off_grp_sid = offset_sid + sid_size(dst->owner_sid);
+ }
else
- dst->off_grp_sid = offset_sid;
+ if (dst->grp_sid != NULL)
+ dst->off_grp_sid = offset_sid;
return dst;