git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64547bd
)
Correctly unbecome_root() on error
author
Volker Lendecke
<vl@samba.org>
Mon, 10 Dec 2007 10:47:17 +0000
(11:47 +0100)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Mon, 10 Dec 2007 13:30:27 +0000
(07:30 -0600)
source/auth/auth_util.c
patch
|
blob
|
history
diff --git
a/source/auth/auth_util.c
b/source/auth/auth_util.c
index 6fbec48894acc485d3db8471f97e8c7b783e6aa6..32224fa2199930ef54b8c142108761ad50aec079 100644
(file)
--- a/
source/auth/auth_util.c
+++ b/
source/auth/auth_util.c
@@
-956,6
+956,7
@@
static 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;
}
@@
-965,6
+966,7
@@
static 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;
}