summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/auth/auth_util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index eb5961de15..91fecfedbf 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -1049,6 +1049,9 @@ static NTSTATUS make_new_session_info_system(TALLOC_CTX *mem_ctx,
(*session_info)->unix_info->system = true;
+ TALLOC_FREE((*session_info)->security_token->sids);
+ (*session_info)->security_token->num_sids = 0;
+
status = add_sid_to_array_unique((*session_info)->security_token->sids,
&global_sid_System,
&(*session_info)->security_token->sids,