summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-09 01:17:13 +0100
committerMichael Adam <obnox@samba.org>2008-01-09 01:47:10 +0100
commit22068a0c167b27cf1d74a32ac516df25dce0f70a (patch)
treeacf4389934f164447d5d8c9db1b33db2c9a1b268 /source3/param
parentf269ed866d01b9924264941268d902b893fbac83 (diff)
downloadsamba-22068a0c167b27cf1d74a32ac516df25dce0f70a.tar.gz
samba-22068a0c167b27cf1d74a32ac516df25dce0f70a.tar.bz2
samba-22068a0c167b27cf1d74a32ac516df25dce0f70a.zip
Change registry_create_admin_token() to return NTSTATUS.
Michael (This used to be commit 9cd30fb25c42e79946b5140994d0bf2ef4c62f90)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 358fabfb2a..9700cd1320 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -3529,7 +3529,7 @@ static bool process_registry_globals(bool (*pfunc)(const char *, const char *))
char *valname = NULL;
char *valstr = NULL;
uint32 idx = 0;
- NT_USER_TOKEN *token;
+ NT_USER_TOKEN *token = NULL;
ctx = talloc_init("process_registry_globals");
if (!ctx) {
@@ -3543,8 +3543,9 @@ static bool process_registry_globals(bool (*pfunc)(const char *, const char *))
goto done;
}
- if (!(token = registry_create_admin_token(ctx))) {
- DEBUG(1, ("Error creating admin token\n"));
+ werr = ntstatus_to_werror(registry_create_admin_token(ctx, &token));
+ if (!W_ERROR_IS_OK(werr)) {
+ DEBUG(1, ("Error creating admin token: %s\n",dos_errstr(werr)));
goto done;
}