summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-22 02:45:04 +0100
committerMichael Adam <obnox@samba.org>2008-03-22 02:45:04 +0100
commit7290b6a8fc4d49a1ffafab8b1ccc9f8d5c1df026 (patch)
treec671519e4bf81ef7e2240c1404474b87ed14dd02
parent5ea7faef3dd698a01481b8a9fd4fe05579fe8664 (diff)
downloadsamba-7290b6a8fc4d49a1ffafab8b1ccc9f8d5c1df026.tar.gz
samba-7290b6a8fc4d49a1ffafab8b1ccc9f8d5c1df026.tar.bz2
samba-7290b6a8fc4d49a1ffafab8b1ccc9f8d5c1df026.zip
libgpo: open the registry in gp_init_reg_ctx().
I forgot the regdb_open() call: registry_init_basic() closes the registry in the end... sorry. Michael (This used to be commit 4185ed03a3879ab708b004ef87b9ffaa6a9e6f3d)
-rw-r--r--source3/libgpo/gpo_reg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/libgpo/gpo_reg.c b/source3/libgpo/gpo_reg.c
index e48a8715d3..9c6df9caf3 100644
--- a/source3/libgpo/gpo_reg.c
+++ b/source3/libgpo/gpo_reg.c
@@ -77,6 +77,11 @@ WERROR gp_init_reg_ctx(TALLOC_CTX *mem_ctx,
return WERR_NOMEM;
}
+ werr = regdb_open();
+ if (!W_ERROR_IS_OK(werr)) {
+ return werr;
+ }
+
if (initial_path) {
tmp_ctx->path = talloc_strdup(mem_ctx, initial_path);
if (!tmp_ctx->path) {