diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/registry/util.c | 9 |
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); |