summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-22 19:45:21 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-22 22:31:02 +0100
commit9d8592978e28c492d971a3b5a4c0133febc149ea (patch)
tree2c5e9a25f649aa0af130e5ac21792c3c99e57b4d
parent05d8882a966708f994688fce3b978abb1432bc40 (diff)
downloadsamba-9d8592978e28c492d971a3b5a4c0133febc149ea.tar.gz
samba-9d8592978e28c492d971a3b5a4c0133febc149ea.tar.bz2
samba-9d8592978e28c492d971a3b5a4c0133febc149ea.zip
s4:registry - "util" - make "reg_key_add_abs" consistent with "reg_key_del_abs"
-rw-r--r--source4/lib/registry/util.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/source4/lib/registry/util.c b/source4/lib/registry/util.c
index 2ebb86b147..fc5244a151 100644
--- a/source4/lib/registry/util.c
+++ b/source4/lib/registry/util.c
@@ -272,14 +272,11 @@ WERROR reg_key_add_abs(TALLOC_CTX *mem_ctx, struct registry_context *ctx,
}
error = get_abs_parent(mem_ctx, ctx, path, &parent, &n);
- if (!W_ERROR_IS_OK(error)) {
- DEBUG(2, ("Opening parent of %s failed with %s\n", path,
- win_errstr(error)));
- return error;
+ if (W_ERROR_IS_OK(error)) {
+ error = reg_key_add_name(mem_ctx, parent, n, NULL, sec_desc,
+ result);
}
- error = reg_key_add_name(mem_ctx, parent, n, NULL, sec_desc, result);
-
talloc_free(parent);
talloc_free(n);