diff options
author | Jean-François Micouleau <jfm@samba.org> | 2002-04-29 21:34:02 +0000 |
---|---|---|
committer | Jean-François Micouleau <jfm@samba.org> | 2002-04-29 21:34:02 +0000 |
commit | 07bb869958111edff7a71b262b45f75f590e32e4 (patch) | |
tree | efe7cf19f482f4f492f6de299885168c27b7fd63 | |
parent | e62aa7555b06155200e41b3b358adcf43d3006f2 (diff) | |
download | samba-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)
-rw-r--r-- | source3/rpc_parse/parse_sec.c | 9 |
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; |