diff options
-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; |