diff options
-rw-r--r-- | source3/auth/token_util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c index bc6bea5d29..63672bcf74 100644 --- a/source3/auth/token_util.c +++ b/source3/auth/token_util.c @@ -395,6 +395,7 @@ struct nt_user_token *create_local_nt_token(TALLOC_CTX *mem_ctx, status = add_aliases(get_global_sam_sid(), result); if (!NT_STATUS_IS_OK(status)) { + unbecome_root(); TALLOC_FREE(result); return NULL; } @@ -404,6 +405,7 @@ struct nt_user_token *create_local_nt_token(TALLOC_CTX *mem_ctx, status = add_aliases(&global_sid_Builtin, result); if (!NT_STATUS_IS_OK(status)) { + unbecome_root(); TALLOC_FREE(result); return NULL; } |